Reputation: 33
Have referred to JQuery docs where they mention this piece of code.
var xmlDocument = [create xml document];
$.ajax({
url: "page.php",
processData: false,
data: xmlDocument,
success: handleResponse
});
but i am trying to make the same request in Adobe AIR environment its giving a parse error.
Is there any specific way of creating an xml Document using jQuery.
Upvotes: 1
Views: 9112
Reputation: 7347
in order for the server to get the data, you need to say
data: "varname=" + xmlDocument,
otherwise the data has no variable name on the other side of the transmission.
Upvotes: 0