What is the correct way to transfer/pass an xml document/string to php from javascript or jquery
I am obtaining an xml from a remote server using jquery.
I am then creating an xml document using
$.parseXML()
in jQuery, (which is new to version 1.5 of jQuery)
That side of things works well, however i am not sure what the best way is to then pass this xml document to a php file so that the contents can be saved to a mysql database.
It doesnt seem possible to pass the xml to php as a variable via the get method.
Does the 开发者_Python百科xml document need to be serialized? Should i be using $.parseXML() prior to sending it to the php script or not?
There must be a correct way to do this?
Any discussion on this is very welcome?
POST it.
http://api.jquery.com/jQuery.post/
精彩评论