1. #1
    Ext User twinkle's Avatar
    Join Date
    Aug 2008
    Location
    Ankara,Turkey
    Posts
    50
    Vote Rating
    0
    twinkle is on a distinguished road

      0  

    Question JSON and TreePanel

    JSON and TreePanel


    Code:
    new Ext.tree.TreePanel({
                        rootVisible:true,
                        layout:'fit',           
                         loader: new Ext.tree.TreeLoader({
                            requestMethod: 'GET',
                            dataUrl:'XmlTreeLoader.json'                        
                        }),
                        root: new Ext.tree.AsyncTreeNode({
                            draggable:false,
                            text:langResStr_tasks
                        })
                    })
    Can anyone help me, why I could not get my tree nodes from JSON file?

  2. #2
    Ext User twinkle's Avatar
    Join Date
    Aug 2008
    Location
    Ankara,Turkey
    Posts
    50
    Vote Rating
    0
    twinkle is on a distinguished road

      0  

    Default


    I am still could not add my JSON file data into tree...
    I searched all examples but nothing found.
    Please somebody who has tried this before help me.

  3. #3
    Sencha - Community Support Team Condor's Avatar
    Join Date
    Mar 2007
    Location
    The Netherlands
    Posts
    24,246
    Vote Rating
    89
    Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of

      0  

    Default


    Try adding a loadexception handler to the loader to see if the data loads correctly.

    ps. XHR requires that XmlTreeLoader.json is served from a HTTP server. If XmlTreeLoader.json is a file on the local file system you need to include ext-basex.

  4. #4
    Ext User twinkle's Avatar
    Join Date
    Aug 2008
    Location
    Ankara,Turkey
    Posts
    50
    Vote Rating
    0
    twinkle is on a distinguished road

      0  

    Default


    I tried showing my file and its total count shows '0'.
    Also, I do not understand why I need ext-basex.

  5. #5
    Sencha - Community Support Team Condor's Avatar
    Join Date
    Mar 2007
    Location
    The Netherlands
    Posts
    24,246
    Vote Rating
    89
    Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of

      0  

    Default


    1. Are you testing local files or files on a webserver?
    2. Did you get a 'load' event or a 'loadexception' event in the TreeLoader?

  6. #6
    Ext User twinkle's Avatar
    Join Date
    Aug 2008
    Location
    Ankara,Turkey
    Posts
    50
    Vote Rating
    0
    twinkle is on a distinguished road

      0  

    Default


    I am using local file and I load it.
    I did not take any exception.
    Therefore,I did not include loadexception.
    Is it necessary in this situation?

  7. #7
    Sencha - Community Support Team Condor's Avatar
    Join Date
    Mar 2007
    Location
    The Netherlands
    Posts
    24,246
    Vote Rating
    89
    Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of

      0  

    Default


    ExtJS can't load local files.

    The ext-basex user extension adds support for loading local files.

  8. #8
    Ext User twinkle's Avatar
    Join Date
    Aug 2008
    Location
    Ankara,Turkey
    Posts
    50
    Vote Rating
    0
    twinkle is on a distinguished road

      0  

    Default


    I include this but nothing change.
    Once I have load local data from json to
    my gridpanel but I could not achieve for treepanel.
    This is confused my mind. Nobody has any example
    which includes json and treepanel? and also treepanel
    take nodes and leaves from json.
    Please..

  9. #9
    Sencha - Community Support Team Condor's Avatar
    Join Date
    Mar 2007
    Location
    The Netherlands
    Posts
    24,246
    Vote Rating
    89
    Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of

      0  

    Default


    Are you including ext-basex-min.js after ext-all.js in your HTML?

  10. #10
    Ext User twinkle's Avatar
    Join Date
    Aug 2008
    Location
    Ankara,Turkey
    Posts
    50
    Vote Rating
    0
    twinkle is on a distinguished road

      0  

    Default


    Yes, but nothing has changed

Thread Participants: 2

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi