Hi,
I need to pass a json payload to the transport load. The example below will pass the foo as part of the querystring. I cannot pass the json through querystring because sometimes it can become large.
load : {
url : 'https://mycool-server.com/load.php',
// HTTP request parameter used to pass serialized "load"-requests
paramName : 'data',
// pass extra HTTP request parameter
params : {
foo : [{data: 'data1'},{data:'data2'}]
}
},
In Jquery, something like this.
$.service('url', {
model: [{data: 'data1'},{data:'data2'}],
returnType: 'text'
}).done(function (response) {
});