I have a requirement where I need to send a JSON Array along with the form data in an ajax post call using Dojo xhrPost. This JSON Array is not part of the form that is being submitted through this post call. Any suggestions on how to do this?
Thanks
I have a requirement where I need to send a JSON Array along with
Share
You could use dojo.formToJson to transform your form data into JSON and then add the result to the already existing JSON values in your JSON Array, finally posting the JSON Array to the server.