开发者

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/

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜