Run
This page will pass in and run the initialization of the script. You must make sure that the Order.xml document is on the same path as the jsxml.html.
The initialization section shows a new ActiveX object as an Msxml2.domdocument.3.0 object type, and then the script passes in the Order.xml document into memory and selects all the/order/item nodes. We use the/order/item node to identify the options that the document already contains.
The <body> standard in the document has an OnLoad attribute that enables the Web page to invoke Getdatanext () and initialize it. This feature can be used to get the next value from the XML document and display it in the form. We use a simple index to access specific options.
The forward (>>) and Backward (<<) buttons all use the same mechanism. Call Getdatanext () or Getdataprev () first in response to the OnClick event, which uses a logical method to avoid accessing our records outside of the document.
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.