PDA

View Full Version : get data from Response root



srinusencha
30 Jul 2013, 3:22 AM
{
"GetProfileResult": {
"statuscode": "200",
"statusmessage": "success",

"Response": [
{
"first_name": "srinivas",
"last_name": "katta",
"email_id": "srinu@gmail.com",
"phone_main": "5464564565"
}
]
},
}

slemmon
2 Aug 2013, 4:08 PM
What you've posted isn't a lot to go on. Are you doing an Ext.Ajax.request() and wanting to get the data from the response? You're working with a model directly? This is the response passed to a store's proxy?

Can you give more details on what you're trying to accomplish?

srinusencha
3 Aug 2013, 6:51 AM
What you've posted isn't a lot to go on. Are you doing an Ext.Ajax.request() and wanting to get the data from the response? You're working with a model directly? This is the response passed to a store's proxy?

Can you give more details on what you're trying to accomplish?


Am using Ext.Ajax.request() in that am giving like this rootproperty:'Response' am getting values firstname and etc but am not able to get 'stauscode' and "staustext"

slemmon
6 Aug 2013, 2:37 PM
Can you share your code with the Ajax.request() and the code you're using to try and get access to the various properties in the JSON response?