1. #1
    Sencha User
    Join Date
    Nov 2010
    Posts
    14
    Vote Rating
    0
    gel87 is on a distinguished road

      0  

    Default No Request from AjaxProxy to server

    No Request from AjaxProxy to server


    Dear all,

    I've tried the following:
    Created a TreePanel
    Created a TreeStore
    Created a Model
    Added data manually to the Store
    => TreePanel was displayed correctly

    Removed data from the store
    Added an ajax proxy
    => The url is not requested and no data ist displayed.

    What could be the reason?

    Here is my code:
    Code:
    Ext.define('PM.store.Projects', {
        extend: 'Ext.data.TreeStore',
        model: 'PM.model.Project',
        autoLoad: true,
    
        proxy: {
            type: 'ajax',
            url: 'data/projectTree.json',
        },
    });

  2. #2
    Sencha - Support Team scottmartin's Avatar
    Join Date
    Jul 2010
    Location
    Houston, Tx
    Posts
    8,884
    Vote Rating
    440
    scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future

      0  

    Default


    You would have to post your JSON and update your reader based on the data

    example
    Code:
    proxy: {
        type: 'ajax',
        url: 'tree.json',
        reader: {
            type: 'json',
            root: 'children'
        }
    }
    Scott.

Thread Participants: 1

Tags for this Thread