[CLOSED] where's the Main.init() ?

  1. #1

    [CLOSED] where's the Main.init() ?

    hi,

    i like to having animation even before the loading is finish. but trough javascript (not iframe)

    here's the idea
    http://www.sencha.com/forum/showthre...l=1#post544049

    how I can inject that script to main init in ext.net ?
    Last edited by Daniil; Mar 14, 2012 at 6:06 PM. Reason: [CLOSED]
  2. #2
    Hi,

    There is no
    Main.init()
    in Ext.NET.

    An Ext.onReady() handler you can set up using ResourceManager DocumentReady listener or this way:
    <ext:ResourcePlaceHolder runat="server" Mode="ScriptFiles" />
    
    <script type="text/javascript">
        Ext.onReady(...);
    </script>
    You are also might be interested in these examples:
    https://examples1.ext.net/#/Panel/Bo...Standard_Mask/
    https://examples1.ext.net/#/Panel/BodyMask/Custom_Mask/
  3. #3
    Quote Originally Posted by Daniil View Post
    Hi,

    There is no
    Main.init()
    in Ext.NET.

    An Ext.onReady() handler you can set up using ResourceManager DocumentReady listener or this way:
    <ext:ResourcePlaceHolder runat="server" Mode="ScriptFiles" />
    
    <script type="text/javascript">
        Ext.onReady(...);
    </script>
    You are also might be interested in these examples:
    https://examples1.ext.net/#/Panel/Bo...Standard_Mask/
    https://examples1.ext.net/#/Panel/BodyMask/Custom_Mask/
    Hi Daniil,

    thanks for the information
    the problem here with the sample that to give is i'm trying to show mask when loading a page (whole page), not in ext window and its not iframe also. is it still possible?

    the reason i'm looking for main.init() is because i need to showing the mask even when the page is not ready
  4. #4
  5. #5
    Quote Originally Posted by Daniil View Post
    its work perfectly Daniil, thanks

    one more thing...can I have the same please wait css like in ext.net (no need the animation really)?
  6. #6
    Well, since the Ext.NET/ExtJS resources are not loaded yet, the single way - duplicating the required ones and using them.
  7. #7
    thanks Daniil :)

Similar Threads

  1. Replies: 16
    Last Post: Nov 23, 2012, 12:23 PM
  2. Init script in browser cache
    By moldeveloper in forum Feature Requests
    Replies: 1
    Last Post: Jun 08, 2012, 10:43 AM
  3. [CLOSED] Regarding Ext.QuickTips.init()
    By nhg_itd in forum 1.x Legacy Premium Help
    Replies: 11
    Last Post: Feb 14, 2012, 7:43 AM
  4. [CLOSED] Weird error with init script being called twice from IE
    By PhilG in forum 1.x Legacy Premium Help
    Replies: 3
    Last Post: Jan 13, 2012, 11:10 AM
  5. Sort MultiSelect on page Init
    By ddolan in forum 1.x Help
    Replies: 4
    Last Post: Aug 02, 2010, 9:48 PM

Posting Permissions