Ext is not defined

  1. #1

    Ext is not defined

    Hi,

    I have a web site that works fine.
    It is a desktop application.
    Sometimes, I have some errors "Ext is not defined" on the Ext.js framework files.
    I don't why I have these error after a certain time of use.

    Anybody have an idea ?
    Thanks.
  2. #2
    Hello,

    I still have this problem.
    After a certain time of use (open and close some windows), I have an error "Ext is not defined".
    I can't do anything else than refresh the page with F5.
    What could be this problem?
    How can I resolve it?

    I really need helps...
    Thank you.
  3. #3
    Hi,

    "Ext is undefined" can be in one case only, if ExtJS resource files are not loaded properly.
    I suggest to monitor all requests by Fidller and after the error check invalid requests in the Fidller
  4. #4
    Hi Vladimir,

    Thank you for your quick answer.

    I can reproduce quickly on FireFox but not on IE.
    I launch Fiddler 2 and I checked request after the problem appears.

    Even after the problem, I can still create new windows but can't close them.
    The close action is only a javascript method so I don't see it in Fiddler.
    But I created a new window and recorded this request :

        <script type="text/javascript" src="/MyApp/extjs/adapter/ext/ext-base-js/ext.axd?v=36328"></script>
        <script type="text/javascript" src="/MyApp/extjs/ext-all-js/ext.axd?v=36328"></script>
        <script type="text/javascript" src="/MyApp/extnet/extnet-core-js/ext.axd?v=36328"></script>
        <script type="text/javascript" src="/MyApp/extjs/locale/ext-lang-fr-js/ext.axd?v=36328"></script>
        <script type="text/javascript">
        //<![CDATA[
            Ext.net.ResourceMgr.init({id:"extMain",BLANK_IMAGE_URL:"/MyApp/extjs/resources/images/default/s-gif/ext.axd",theme:"blue",appName:"MyApp"});Ext.onReady(function(){Ext.QuickTips.init();new Ext.form.Hidden({id:"hfUrl",renderTo:"hfUrl_Container"});new Ext.form.Hidden({id:"hfTabIdx",renderTo:"hfTabIdx_Container"});new Ext.Viewport({id:"ctl04",renderTo:Ext.getBody(),items:{id:"pnlMain",autoScroll:true,items:null,layout:"anchor",autoLoad:{url:"/MyApp/Download.ashx?docid=d66bc3de-90e2-4e7e-89fa-b09a592f6167&action=V",scripts:true,mode:"iframe",showMask:true,maskMsg:"Traitement en cours..."},keys:{fn:load,key:[13]}},layout:"fit"});checkWindowHeight(); setTimeout('setSize()', 200); checkErrorMessage(); initNavigateUrl(true);});
        //]]>
        </script>
    I don't know if it could be useful.
    Otherwise, what can I do exactly with Fiddler ?
    Why the problem appears with FF and not IE ?

    After investigation :
    I debugged the javascript with FF :
    I can create some new windows and doing what I want while everything.
    I can call some javascript or direct methods, ...
    When I want to close it, I call a method w.close();
    where w = parent.frames[this.name.substring(0, this.name.length - 7)]
    The name is the id of the dynamic window created.
    Just before calling w.close(), "Ext" is known and has value.
    If I press F11 (go inside the method) : I can't go there and I have the error : "Ext is not defined".

    I hope it will help you to better understand my problem.

    PS : I remarked that the method w.close() works perfectly during a certain time of use.
    And at one moment it doesn't work.

    Thanks,
    Yannis.
  5. #5
    Hi!

    I think to have resolved my problem.

    One moment in my code I have one window that creates another window in modal mode.
    In js file, I wanted to close the two windows.
    I wrote :
      parent.closeWindow();
      ...
      closeWindow();
    I think that these two lines of code caused my problem.

    Anyway, thank you for your help.

Similar Threads

  1. Ext is not defined
    By cristianscotti in forum 2.x Help
    Replies: 4
    Last Post: Mar 30, 2012, 1:54 PM
  2. Ext is not defined !
    By bmagana in forum 1.x Help
    Replies: 1
    Last Post: Jun 22, 2011, 2:50 PM
  3. EXT is not defined! please help
    By wasseem78 in forum 1.x Help
    Replies: 2
    Last Post: May 16, 2011, 7:26 AM
  4. Ext is not defined...
    By flaviodamaia in forum 1.x Help
    Replies: 3
    Last Post: Mar 11, 2010, 1:54 PM
  5. " " is not defined
    By vishnukamatam in forum 1.x Help
    Replies: 3
    Last Post: Mar 05, 2010, 1:42 PM

Posting Permissions