J. Crowder do not get me wrong, I thank you for the effort they put in
helping others.
i readed about your suggest to send data in this simple way:
var jsonRequest = ...;
new Ajax.Request( // ...
parameters: {json: jsonRequest}
// ...
});
but my question is, i have all based application such statements:
var requestObject = new Object();
requestObject.idNickRcv = idNickRcv;
requestObject.msg = msg;
i want convert requestObject in JSON string and send to the server.
var jsonRequest =
encodeURIComponent(JSON.stringify(requestObject));
new Ajax.Request(baseUrl + '/usermsg/index/sendmessage', {
method: 'POST',
requestHeaders: {Accept: 'application/json'},
parameters: jsonRequest,
//...
In this way works only IE and FireWorks. Not on Chrome always decoding
fails.
you must use stringify? scriptaculous encodes them alone?
Thank you
--
You received this message because you are subscribed to the Google Groups
"Prototype & script.aculo.us" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/prototype-scriptaculous?hl=en.