Ext Undefined Javascript Error

  1. #1

    Ext Undefined Javascript Error

    I'm randomly getting an ext not defined javascript error when I run my Web app in IE 7.0. I've checked my Web.config several times.

    Sometimes it works and sometimes it doesn't so I'm wondering if it has something to do with how I'm positioning controls on the page or something unrelated to the Web.config.
  2. #2

    RE: Ext Undefined Javascript Error

    Hi mathec,

    This might be releated to the following forum post, although we have not been able to reproduce or narrow down the problem, see*http://forums.ext.net/showthread.php...6640-16-1.aspx


    Try setting CleanResourceUrl="false" on the ScriptManager and let us know if that helps solve/prevent the problem.*


    Example


    <ext:ScriptManager ID="ScriptManager1" runat="server" CleanResourceUrl="false" />

    Geoffrey McGill
    Founder
  3. #3

    RE: Ext Undefined Javascript Error

    I think I narrowed down what is causing the issue. I notice that every once in a while my web.config is automatically updated to include the AjaxRequestModule under httpModules and the */coolite.axd path under httpHandlers. In your readme you say those aren't needed for IE7. When I delete them the app starts working again. But they automatically get added back anytime I make a change to my Web form.
  4. #4

    RE: Ext Undefined Javascript Error

    mathec (1/20/2009)*I think I narrowed down what is causing the issue.* I notice that every once in a while my web.config is automatically updated to include the AjaxRequestModule under httpModules and the */coolite.axd path under httpHandlers.* In your readme you say those aren't needed for IE7.* When I delete them the app starts working again.* But they automatically get added back anytime I make a change to my Web form.
    This certainly might be causing problems. We're running some tests to try and reproduce.*


    Would you be able to post a simplified .aspx code sample which reproduces the problem? Anything would help because at the moment we're stabbing in the dark trying to figure out what is required to reproduce the error.*


    Another question, do you have StateProvider="Cookie" set on the <ext:ScriptManager>? If yes, does setting to "None" help solve the problem?


    Geoffrey McGill
    Founder
  5. #5

    RE: Ext Undefined Javascript Error

    I don't have StateProvider set in my ScriptManager. I know for certain now that the Web.config is what's causing the problem. However, I was wrong about the event that causes the automatic update of the Web.config. It doesn't change automatically every time. It seems that it only does it on some certain event which I can't figure out. At this point, since I know what's causing the problem, it's not a show stopping issue for me. If I figure out what's causing the Web.config to update automatically (and you don't know already) I'll let you know right away.

    C
  6. #6

    RE: Ext Undefined Javascript Error

    The Web.config will be updated when you go into Visual Studio "Design" Mode. The Toolkit checks the Web.config to ensure the property httpHandler and httpModule has been registered and adds to the Web.config if missing.*

    This is clearly causing some kind of conflict with IIS7.


    Would you be able to post (or directly send to support [at] coolite [dot] com) a copy of your Web.config file? Please remove any confidential information from the Web.config.*


    Geoffrey McGill
    Founder

Similar Threads

  1. Replies: 2
    Last Post: May 08, 2012, 3:34 PM
  2. [CLOSED] Ext is Undefined from javascript on Master Page
    By vaultview in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Dec 03, 2011, 10:42 AM
  3. Replies: 9
    Last Post: Apr 25, 2011, 8:23 PM
  4. 'Undefined' JavaScript error
    By vs.mukesh in forum 1.x Help
    Replies: 0
    Last Post: Mar 15, 2011, 8:13 AM
  5. Error: Ext is Undefined
    By shankar in forum 1.x Help
    Replies: 2
    Last Post: Aug 05, 2010, 4:00 PM

Posting Permissions