pianoroy
16 Aug 2007, 10:59 AM
Hello friends,
I am making a JSON-RPC request via Ext.Ajax.request. The problem is, my request parameters are being urlEncoded against my will. (using ExtJS 1.1)
I am trying to send the following string:
'{"method": "addFieldRow", "params": {"fieldID": "4", "columnValuePairs": {"name": "Foo"}}, "id": 3}'
...but the server is receiving this string:
'%7B%22method%22%3A%20%22addFieldRow%22%2C%20%22params%22%3A%20%7B%22fieldID%22%3A%20%224%22%2C%20%22columnValuePairs%22%3A%20%7B%22name%22%3A%20%22Foo%22%7D%7D%2C%20%22id%22%3A%203%7D'
Here is the code that sends it:
Ext.Ajax.request(Ext.apply(this.createCallback(), {
url: Page.Ajax.Json.url, //a string to a local url, this is fine
method: Page.Ajax.Json.httpMethod, //"POST", this is fine too
params: requestData, //The above string. It goes in fine, comes out bad.
isUpload: false
));
Does anyone have an idea what to do?
Thanksamillion,
Roy
I am making a JSON-RPC request via Ext.Ajax.request. The problem is, my request parameters are being urlEncoded against my will. (using ExtJS 1.1)
I am trying to send the following string:
'{"method": "addFieldRow", "params": {"fieldID": "4", "columnValuePairs": {"name": "Foo"}}, "id": 3}'
...but the server is receiving this string:
'%7B%22method%22%3A%20%22addFieldRow%22%2C%20%22params%22%3A%20%7B%22fieldID%22%3A%20%224%22%2C%20%22columnValuePairs%22%3A%20%7B%22name%22%3A%20%22Foo%22%7D%7D%2C%20%22id%22%3A%203%7D'
Here is the code that sends it:
Ext.Ajax.request(Ext.apply(this.createCallback(), {
url: Page.Ajax.Json.url, //a string to a local url, this is fine
method: Page.Ajax.Json.httpMethod, //"POST", this is fine too
params: requestData, //The above string. It goes in fine, comes out bad.
isUpload: false
));
Does anyone have an idea what to do?
Thanksamillion,
Roy