Nov 10, 2008, 10:13 AM
[CLOSED] [MVC] Ext.onReady is not a function - Help?
Hi,
I downloaded and installed Coolite today and I tried some of the examples on my own computer.
Now I can always see the design but if I run it, I always get a blank page.
My code is just:
Ext.onReady is not a function
If I look into the script, line 16 is:
I downloaded and installed Coolite today and I tried some of the examples on my own computer.
Now I can always see the design but if I run it, I always get a blank page.
My code is just:
<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" AutoEventWireup="true" CodeBehind="About.aspx.cs" Inherits="MvcApplication4.Views.Home.ViewContentPage1" %>
<%@ Register Assembly="Coolite.Ext.Web" Namespace="Coolite.Ext.Web" TagPrefix="ext" %>
<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
<ext:ScriptManager ID="ScriptManager1" runat="server" />
<ext:Panel ID="Panel1" runat="server" Height="300" Title="Title">
<Content>
<ext:BorderLayout ID="BorderLayout1" runat="server">
<West Collapsible="true" Split="true">
<ext:Panel ID="Panel2" runat="server" Title="West" Width="175">
</ext:Panel>
</West>
</ext:BorderLayout>
</Content>
</ext:Panel>
</asp:Content>
If I use firebug, it tells me, that there is an error on line 16:Ext.onReady is not a function
If I look into the script, line 16 is:
Ext.onReady(function(){Ext.QuickTips.init();Coolite.Ext.ScriptManagerUniqueID='ctl00$MainContent$ScriptManager1';Coolite.Ext.ThisUrl='http://localhost:1141/Home/About';this.ctl00_MainContent_Panel1=new
Ext.Panel({id:"ctl00_MainContent_Panel1",renderTo:"ctl00_MainContent_Panel1_Container",height:300,layout:"border",serverID:"BorderLayout1",items:{id:"ctl00_MainContent_Panel2",split:true,region:"west",collapsible:true,width:175,title:"West",serverID:"Panel2"},title:"Title",serverID:"Panel1"});this.ctl00_MainContent_Panel2=Ext.getCmp('ctl00_MainContent_Panel2');});Ext.BLANK_IMAGE_URL="/extjs/resources/images/default/s-gif/coolite.axd";<a class="sourceLine">17</a>
What did I do wrong?