prajith
15 Oct 2007, 12:46 AM
in basic form doc in ext2 specifies the data (JSON response) should be in this format
{
success: true,
data: {
clientName: "Fred. Olsen Lines",
portOfLoading: "FXT",
portOfDischarge: "OSL"
}
}
--------------------
myForm.form.load({url:'/service/getData',params: param, waitMsg:'Loading'});
But my response is like following
{"response" :
{
success: true,
data: {
clientName: "Fred. Olsen Lines",
portOfLoading: "FXT",
portOfDischarge: "OSL"
}
}
}
ie "response" is the root element
Here is any way to specify the root element
how can i use myForm.form.load function to load data ?
Please help
{
success: true,
data: {
clientName: "Fred. Olsen Lines",
portOfLoading: "FXT",
portOfDischarge: "OSL"
}
}
--------------------
myForm.form.load({url:'/service/getData',params: param, waitMsg:'Loading'});
But my response is like following
{"response" :
{
success: true,
data: {
clientName: "Fred. Olsen Lines",
portOfLoading: "FXT",
portOfDischarge: "OSL"
}
}
}
ie "response" is the root element
Here is any way to specify the root element
how can i use myForm.form.load function to load data ?
Please help