1. #1
    Sencha User
    Join Date
    Feb 2012
    Location
    Bangalore
    Posts
    3
    Vote Rating
    0
    vnadar is on a distinguished road

      0  

    Default I am trying hard to load a json

    I am trying hard to load a json


    Hi

    I am new to Extjs 4 and trying to draw a stacked column chart i am having a though time to load a json in to a datastore below is the json
    please help
    {
    "success": true,
    "JSData": {
    "list": [
    "Raja",
    "Kumran",
    "Kartik"
    ],
    "chart": {
    "NOV": [
    {
    "Raja": "1"
    },
    {
    "Kumran": "1"
    },
    {
    "Kartik": "1.25"
    }
    ],
    "DEC": [
    {
    "Raja": "1"
    },
    {
    "Kumran": "1"
    },
    {
    "Kartik": "1.25"
    }
    ],
    "JAN": [
    {
    "Raja": "1"
    },
    {
    "Kumran": "1"
    },
    {
    "Kartik": "1.25"
    }
    ],
    "FEB": [
    {
    "Raja": 9
    },
    {
    "Kumran": 6
    },
    {
    "Kartik": 8
    }
    ],
    "MAR": [
    {
    "Raja": 7
    },
    {
    "Kumran": 3
    },
    {
    "Kartik": 2
    }
    ],
    "APR": [
    {
    "Raja": 3
    },
    {
    "Kumran": 5
    },
    {
    "Kartik": 2
    }
    ]
    }
    }
    }

  2. #2
    Sencha - Support Team scottmartin's Avatar
    Join Date
    Jul 2010
    Location
    Houston, Tx
    Posts
    8,918
    Vote Rating
    443
    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


    What does your model/store/proxy look like? do you get a result back?

    Regards,
    Scott.

  3. #3
    Sencha User
    Join Date
    Feb 2012
    Location
    Bangalore
    Posts
    3
    Vote Rating
    0
    vnadar is on a distinguished road

      0  

    Default


    var JSData = Ext.create ('Ext.data.Store', {
    pageSize: 10,
    storeId: 'JSData_Load',
    proxy: {
    type: 'jsonp',
    url: 'form6.php',
    reader: {
    type: 'json',
    root: 'JSData',
    }
    },
    fields: [
    {name: 'list', mapping: 'list'},
    {name: 'chart', mapping: 'chart'}
    ]
    });

  4. #4
    Sencha User
    Join Date
    Feb 2012
    Location
    Bangalore
    Posts
    3
    Vote Rating
    0
    vnadar is on a distinguished road

      0  

    Default


    I am very new to Extjs in firebug i can see the AJAX call showing the Json Data

Thread Participants: 1

Tags for this Thread

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