[CLOSED] Ext is undefined crush

Page 1 of 2 12 LastLast
  1. #1

    [CLOSED] Ext is undefined crush

    Hi,

    I've rewrite my Login form to use ext.net and now my page which containes this control doesn't work there r 5 js errors

    4 of (SyntaxError: syntax error on line <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> in ext.axd?v=0 file)

    and 1 of(ReferenceError: Ext is not defined)

    I've got resourcemanager on master page. even added :
        <ext:ResourcePlaceHolder ID="ResourcePlaceHolder1" runat="server" />
    I've add proper configuration webServer to my web.config to on IIS 7.

    It's wird because it's work only once (i mean form have showed up) then after I click F5 button on my keyboard.


    login.ascx
    :
        <ext:FormPanel
        ID="Window1"
        runat="server"
        Closable="false"
        Resizable="false"
        Height="150"
        Icon="Lock"
        Title="Login form"
        Draggable="false"
        Width="450"
        Padding="5"
        >
        <Items>
        <ext:TextField
        ID="txtUsername"
        runat="server"
        FieldLabel="Login"
        AllowBlank="false"
        BlankText="Login required."
        />
        <ext:TextField
        ID="txtPassword"
        runat="server"
        InputType="Password"
        FieldLabel="Password"
        AllowBlank="false"
        BlankText="password required."
        />
        </Items>
        <Buttons>
        <ext:Button ID="LoginButton" runat="server" Icon="Accept" Cls="buttonLogin" Text="Login">
        <DirectEvents>
        <Click OnEvent="LoginButton_Click" Before="if(!#{txtUsername}.validate()||(!#{txtPass word}.validate()|| #{txtUsername}.disabled)){return false;}">
        <ExtraParams>
        <ext:Parameter runat="server" Name="Resolution" Value="Ext.getBody().getViewSize()" Mode="Raw"></ext:Parameter>
        </ExtraParams>
        </Click>
        </DirectEvents>
        </ext:Button>
        <ext:Button ID="ChangeLoginButton" runat="server" Text="Change user" Icon="ArrowRefresh" OnDirectClick="ChangeLoginButton_Click" >
        </ext:Button>
        </Buttons>
        </ext:FormPanel>
    Page.aspx
        <%@ Page Language="C#" MasterPageFile="~/Empty.Master" %>
    
        <%@ Register Src="controls/Login.ascx" TagName="Login" TagPrefix="uc1" %>
        <asp:Content ID="content" runat="server" ContentPlaceHolderID="siteContent">
        <center>
        <div style="padding-top: 100px;">
        <uc1:Login ID="ctlLogin" runat="server" AnonymousLogin="false" />
        </div>
        </center>
        </asp:Content>
    master.page
        <%@ Master Language="C#" AutoEventWireup="true" CodeBehind="Empty.Master.cs" Inherits="Empty" %>
        <%@ Register TagPrefix="ext" Namespace="Ext.Net" Assembly="Ext.Net" %>
    
        <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
        <html xmlns="http://www.w3.org/1999/xhtml">
        <head runat="server" id="head">
        <meta name="description" content="" />
        <meta name="keywords" content="" />
        <meta http-equiv="Reply-to" content="" />
        <meta name="Distribution" content="Global" />
        <meta http-equiv="Content-Language" content="pl" />
        <meta name="Robots" content="All" />
        <meta name="Rating" content="General" />
        <title>sample master</title>
        <link href="css/framework_2.css" rel="stylesheet" type="text/css" />
        <ext:ResourcePlaceHolder ID="ResourcePlaceHolder1" runat="server" />
        <asp:ContentPlaceHolder ID="head1" runat="server">
        </asp:ContentPlaceHolder>
        </head>
        <body>
        <form id="Form22" runat="server">
        <ext:ResourceManager ID="ResourceManagerMain" runat="server" EnableViewState="false"
        Theme="Default" />
        <ext:Viewport runat="server" Layout="Fit">
        <Content>
        <div class="tophead">
        <div class="tophead_owner_logo">
        <div class="tophead_system_logo">
        <div class="tophead_inner">
        </div>
        </div>
        </div>
        </div>
        <div class="topmenu_bar">
        <table cellpadding="0" cellspacing="0" id="tblTopMenu" width="100%">
        <tr>
        <td class="topmenu_left">
        &nbsp;
        </td>
        <td class="topmenu_right">
        &nbsp;
        </td>
        </tr>
        </table>
        </div>
        <div class="topsubmenu_bar">
        <table cellpadding="0" cellspacing="0" width="100%" id="tblTopSubMenu">
        <tr>
        <td class="topsubmenu_left">
        &nbsp;
        </td>
        <td class="topmenu_right">
        &nbsp;
        </td>
        </tr>
        </table>
        </div>
        <asp:ContentPlaceHolder ID="siteContent" runat="server">
        </asp:ContentPlaceHolder>
        </Content>
        </ext:Viewport>
        </form>
        </body>
        </html>
    Any ideas what can causing it?


    Thanks,
    ViDom
    Last edited by Daniil; Dec 03, 2012 at 11:11 AM. Reason: [CLOSED]
  2. #2
    Hi @ViDom,

    Please clarify is the problem resolved?
  3. #3
    Quote Originally Posted by Daniil View Post
    Hi @ViDom,

    Please clarify is the problem resolved?
    I have no clue what's going on it's again stop work.... I'm bold already because of that kind of issues :(
    Last edited by ViDom; Nov 29, 2012 at 2:17 PM.
  4. #4
    I am unable to reproduce it using the code you provided.

    Are the DirectEvent handlers required to reproduce? I had to remove the DirectEvents because I have no its handlers.

    The login page is rendered well for me.
  5. #5
    Quote Originally Posted by Daniil View Post
    I am unable to reproduce it using the code you provided.

    Are the DirectEvent handlers required to reproduce? I had to remove the DirectEvents because I have no its handlers.

    The login page is rendered well for me.
    for my team mate is render as well goood :( but i can't display it as should without use auto log like solution(no Active directory like )

    txtUsername.Text = admin;
    txtPassword.Text = admi;// it's what happend when I change loging style (write to auto write credentials ;/
    Do you have any idea for that kind issue @Daniill? If not i need to send u sample of all controls to confirm if you have a problem as well :)

    Let me know if I can send you my sample:) ( it's work on my team mate computer :( but on my computer it's produce js error)
  6. #6
    I suggest to check resource requests status first
    Use Fiddler or FireBug to monitor requests.
    If any request is failed then please post its status code and response text
  7. #7
    Quote Originally Posted by Vladimir View Post
    I suggest to check resource requests status first
    Use Fiddler or FireBug to monitor requests.
    If any request is failed then please post its status code and response text
    I've never use fiddler before that's why I'm unable to tell if any request crush;/

    here's screen shot with what I see:
    Click image for larger version. 

Name:	capture5.jpg 
Views:	118 
Size:	31.1 KB 
ID:	5228

    and here in build-in IE9 developer tool:

    Click image for larger version. 

Name:	capture6.jpg 
Views:	106 
Size:	33.0 KB 
ID:	5229

    It's seems to afect all my browser type :(
    Last edited by ViDom; Dec 03, 2012 at 8:18 AM.
  8. #8
    You said that the issue is related with login page.
    Try to set CleanResourceUrl="false" for ResourceManager on the login page. Does it help?
  9. #9
    Quote Originally Posted by Vladimir View Post
    You said that the issue is related with login page.
    Try to set CleanResourceUrl="false" for ResourceManager on the login page. Does it help?
    Yes it seems to help :)
    What exactly do this property CleanResourceUrl?

    Thanks @Vladimir :)
  10. #10
    Quote Originally Posted by ViDom View Post
    What exactly do this property CleanResourceUrl?
    Actually, "true" (default) means to use the Ext.NET resource HTTP handler (ext.axd).

    "false" means to use the default ASP.NET resource HTTP handler (WebResource.axd).
Page 1 of 2 12 LastLast

Similar Threads

  1. Ext is undefined
    By HzA in forum 1.x Help
    Replies: 3
    Last Post: Nov 23, 2011, 7:29 PM
  2. Ext is Undefined
    By OSSAGHO in forum 1.x Help
    Replies: 1
    Last Post: Sep 24, 2011, 10:43 PM
  3. Ext' is undefined
    By vivekrane1986 in forum 1.x Help
    Replies: 8
    Last Post: May 28, 2010, 5:50 AM
  4. Ext.example undefined Ext???
    By Hualin Yuan in forum 1.x Help
    Replies: 0
    Last Post: Apr 23, 2010, 2:07 AM
  5. ext undefined
    By reza_muhammad in forum 1.x Help
    Replies: 0
    Last Post: Nov 17, 2009, 1:52 AM

Tags for this Thread

Posting Permissions