1. #1
    Sencha User lithian's Avatar
    Join Date
    Sep 2007
    Posts
    10
    Vote Rating
    0
    lithian is on a distinguished road

      0  

    Default Debug after a ContentPanel.load

    Debug after a ContentPanel.load


    Hi all,

    I'm trying to implement a simple layout with a header on top, a menu bar on the left and the main content in the middle. The header and the menu bar are always the same but the main content depends on the menu item clicked. Now when the user click on a menu item I change the main content (a ContentPanel) with the function load(). Something like:

    PHP Code:

    // node is something like { text: 'Test page', link: 'test.html' }

    var loadPage = function(node) {
                var 
    main layout.findPanel('main-contents');
                
    main.setTitle(node.text);
                
    main.load({
                    
    urlnode.link,
                    
    discardUrlfalse,
                    
    nocachefalse,
                    
    text"Loading...",
                    
    timeout30,
                    
    scriptstrue // **Load the js code**
                
    });
        }; 
    It works well but the problem is that I'm not able to debug the code dynamically loaded (I use firebug). Anyone can help me?

    Ciao,
    Lithian.

  2. #2
    Ext User
    Join Date
    Aug 2007
    Location
    Argentina
    Posts
    59
    Vote Rating
    0
    Topper is on a distinguished road

      0  

    Default


    //edited
    Last edited by Topper; 18 Sep 2007 at 8:25 AM. Reason: Solved

  3. #3
    Sencha - Ext JS Dev Team Animal's Avatar
    Join Date
    Mar 2007
    Location
    Notts/Redwood City
    Posts
    30,496
    Vote Rating
    44
    Animal has a spectacular aura about Animal has a spectacular aura about Animal has a spectacular aura about

      0  

    Default


    Firebug can't do that yet. It's on their TODO list, and personally I can't wait, because this problem bugs me too.

    The only thing I can suggest, is use Firebug's Console. If you right click on the URL requested, and do "Copy Location with Parameters", and then paste that into the browser's URL bar on another tab, then you can pull that fragment into a fresh page, and debug it there.

Thread Participants: 2