Results 1 to 6 of 6

Thread: Runtime Javascript Loader

  1. #1
    Ext User shibubh's Avatar
    Join Date
    Jul 2007
    Location
    Lamahi,Dang Nepal
    Posts
    449
    Vote Rating
    0
      0  

    Default Runtime Javascript Loader

    this is simple runtime javascript loader class.


    Example :
    Code:
    Ext.ensure({
        js: ['../js/somejs.js', '../js/OtherjsFile.js'],
        callback: function() {
            var win = new Ext.ux.MyWindow({});
            win.show();
        },
        scope: this
    });
    example download and unzip the window.zip file in example dir
    Attached Files Attached Files
    Shibu Bhattarai

    Use JavaScript beautifier to beautify you code http://jsbeautifier.org/

    Code Conventions http://javascript.crockford.com/code.html

    ExtJS Core Manual http://extjs.com/products/extcore/manual/

  2. #2
    Sencha Premium User dawesi's Avatar
    Join Date
    Mar 2007
    Location
    Melbourne, Australia (aka GMT+10)
    Posts
    1,195
    Vote Rating
    39
      0  

    Default

    is this the same as the remote loader in the examples?
    Cloud Application Architect

    Sencha Specialist / Sencha MVP
    ExtJs Developer + Contributor since 0.2.2 - Champion of the per developer license.

  3. #3
    Ext User
    Join Date
    May 2009
    Posts
    1
    Vote Rating
    0
      0  

    Exclamation remote loader?

    Hi, i am looking for a way to Remote Component creation. Is "remote loader" for that?
    Can you give me any link for this?

    I checked the Ext.ux.Plugin.RemoteComponent polugin, but i am looking for a more mature way.

  4. #4
    Sencha User
    Join Date
    Mar 2008
    Posts
    566
    Vote Rating
    0
      0  

    Default

    Shibibh,

    Very nice, any way to unload the js file when done? Is that even possible?

    Thanks, Marty

  5. #5
    Sencha User
    Join Date
    Sep 2009
    Posts
    7
    Vote Rating
    0
      0  

    Default Some trouble with firebug

    I tried your plugin and it works well, but recently I find the js loaded in this way is not shown in firebug in FF thus I can't trace the code. Any solution to this trouble?

  6. #6
    Ext User sam.ds.chen's Avatar
    Join Date
    Oct 2007
    Location
    Shanghai, China
    Posts
    10
    Vote Rating
    0
      0  

    Talking Why not use a logger to debug?

    Quote Originally Posted by mr.a View Post
    I tried your plugin and it works well, but recently I find the js loaded in this way is not shown in firebug in FF thus I can't trace the code. Any solution to this trouble?
    Maybe writting a logging window with ExtJS is a good idea. Or you may be intrested in YUI logger...
    Although break point is not supported by loggers, they can print out some debug messages, which would help you find out where the bug is.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •