1. #1
    Ext User
    Join Date
    Oct 2008
    Posts
    78
    Vote Rating
    0
    nick saint is on a distinguished road

      0  

    Default Tree does not load at IE7 using the ext-3.0-rc2

    Tree does not load at IE7 using the ext-3.0-rc2


    Hi, I am pretty confused as I cannot get the Tree to load. I had an application and right now I am trying to put it at a desktop style. I have a tree which I cannot get loaded at IE7. The FF and Opera do good job but IE!
    I tried to make it as simple as it can be and wrote:
    PHP Code:
    Ext.onReady(function(){

               var testTree = new Ext.tree.TreePanel({
                   id: 'testtree',
                   border: false,
                   rootVisible: false,
                   lines: true,
                   singleExpand: true,
                   loader: new Ext.tree.TreeLoader({
                       dataUrl:'<?=DIR_TO_DESKTOP;?>treeJSON.php'
                       }),
                   root: new Ext.tree.AsyncTreeNode()
               });
               testTree .render('tree');
    });
    Server respond is:

    PHP Code:
    [{
        
    text'To Do',
        
    cls'folder',
        
    children: [{
            
    text'Go jogging',
            
    leaftrue,
            
    checkedfalse
        
    },{
            
    text'Take a nap',
            
    leaftrue,
            
    checkedfalse
        
    },{
            
    text'Climb Everest',
            
    leaftrue,
            
    checkedfalse
        
    }]
    },{
        
    text'Grocery List',
        
    cls'folder',
        
    children: [{
            
    text'Bananas',
            
    leaftrue,
            
    checkedfalse
        
    },{
            
    text'Milk',
            
    leaftrue,
            
    checkedfalse
        
    },{
            
    text'Cereal',
            
    leaftrue,
            
    checkedfalse
        
    },{
            
    text'Energy foods',
            
    cls'folder',
            
    children: [{
                
    text'Coffee',
                
    leaftrue,
                
    checkedfalse
            
    },{
                
    text'Red Bull',
                
    leaftrue,
                
    checkedfalse
            
    }]
        }]
    },{
        
    text'Remodel Project',
        
    cls'folder',
        
    children: [{
            
    text'Finish the budget',
            
    leaftrue,
            
    checkedfalse
        
    },{
            
    text'Call contractors',
            
    leaftrue,
            
    checkedfalse
        
    },{
            
    text'Choose design',
            
    leaftrue,
            
    checkedfalse
        
    }] 
    All I can see at IE is like shown in the picture. Child nodes do not load.
    Please, help to get to know what is happening.
    Thank you
    Nick
    Attached Images

  2. #2
    Ext User
    Join Date
    Oct 2008
    Posts
    78
    Vote Rating
    0
    nick saint is on a distinguished road

      0  

    Default


    Can somebody help with this case?
    Thank you in advance.
    Nick

  3. #3
    Ext User
    Join Date
    Oct 2008
    Posts
    78
    Vote Rating
    0
    nick saint is on a distinguished road

      0  

    Default CLOSED

    CLOSED


    found this:
    PHP Code:
    Ext.override(Ext.tree.TreeLoader, {
        
    runCallback: function(cbscopeargs){
            if(
    Ext.isFunction(cb)){
                
    cb.apply(scopeargs || []);
            }
        }
    }); 
    It gave the life to a tree.
    Thank you
    Nick

  4. #4
    Ext User
    Join Date
    Jun 2009
    Posts
    2
    Vote Rating
    0
    Narbz is on a distinguished road

      0  

    Default thanks, it worked to me as well..

    thanks, it worked to me as well..




    Cheers...!!!

Thread Participants: 1