[CLOSED] Ext is Undefined from javascript on Master Page

  1. #1

    [CLOSED] Ext is Undefined from javascript on Master Page

    The javascript below is on a .Net Master Page, and is throwing an Ext is Undefined error. However, the code does not throw an error when it is on a content page. Any ideas how we can run this code from a Master Page? Adding this to every webpage is not ideal.

    <script type="text/javascript">
            Ext.data.Connection.override({ timeout: 300000 });
            Ext.Ajax.timeout = 300000; 
    </script>
    Last edited by Daniil; Dec 06, 2011 at 6:00 PM. Reason: Please use [CODE] tags, [CLOSED]
  2. #2
    Hi,

    Please set up:
    <ext:ResourcePlaceHolder runat="server" Mode="ScriptFiles" />
    before the script.

    Example
    <ext:ResourcePlaceHolder runat="server" Mode="ScriptFiles" />
    
    <script type="text/javascript">
            Ext.data.Connection.override({ timeout: 300000 });
            Ext.Ajax.timeout = 300000; 
    </script>

Similar Threads

  1. Replies: 4
    Last Post: Feb 13, 2012, 2:21 PM
  2. Replies: 2
    Last Post: Jul 18, 2011, 10:17 PM
  3. Gridpanel undefined in Master page
    By gustavordgz in forum 1.x Help
    Replies: 2
    Last Post: Sep 08, 2010, 8:56 PM
  4. [CLOSED] [1.0] Master Page Viewport "comp is undefined"
    By Labyrinth in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Jun 09, 2010, 6:38 AM
  5. Replies: 2
    Last Post: May 05, 2010, 10:23 AM

Posting Permissions