js|xml| how data is entered by the user
Save it in a certain format to an XML file?
How does an ASP manipulate XML?
JS part Creating XMLHTTP Objects
var xobj = new ActiveXObject ("Msxml2.xmlhttp");
Sending data using the XMLHTTP object
Xobj.open ("Post", "save_xml.asp", false);
Xobj.setrequestheader ("Content-type", "Text/xml");
New Xmldom Object
var xdom = new ActiveXObject ("MSXML2. DOMDocument ");
Xdom.async = false;
Xdom.loadxml ("Xxx.xml");
This can be a loading XML file, or it can be a xmldom data object
Send data
Xobj.send (Xdom.xml);
ASP part ' Define MSXML DOM objects
Dim Objresult
Set Objresult = Server.CreateObject ("MSXML2. DOMDocument ")
' Load submit data
Objresult.load (Request)
Objresult.async = False
' Save submit data
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service