views:

3353

answers:

3

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.

A: 

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.

Scott M.
FYI, you could also do this: data: {varname:xmlDocument}
KyleFarris
A: 

Thank you all

I have got a plugin at this location

satts
A: 

"[create xml document]" do not create an xml documet ;)

chris
We at SO do not typically create noise by answering questions with useless sarcasm. Please delete this entry. If you must make a snarky **comment**, as we all do from time to time, use a **comment**.
Sky Sanders
p.s. welcome to stackoverflow. ;-)
Sky Sanders