For example, this code – Rockwell Automation 1768-EWEB EtherNet/IP Web Server Module User Manual User Manual
Page 104
Publication ENET-UM527E-EN-P - October 2006
104 Create Custom Web Pages
For example, this code:
Data View Javascript Demo Page
var xmlDoc;
var xmlhttp;
var DATAVIEW_URI = "/user/system/dataviews/Sample.xml";
var DATAVIEW_NAMESPACE = "http://www.rockwellautomation.com/technologies/data_access/data_views/1.0/";
var DATATYPES_NAMESPACE = "http://www.rockwellautomation.com/technologies/data_access/data_types/1.0/";
var ARR_ACTIVEX = ["MSXML4.DOMDocument", "MSXML3.DOMDocument", "MSXML2.DOMDocument", "MSXML.DOMDocument",
"Microsoft.XmlDom"];
var STR_ACTIVEX = "";
var isIE = navigator.userAgent.toLowerCase().indexOf("msie") > -1;
if (isIE) {
var bFound = false;
for (var i=0; i < ARR_ACTIVEX.length && !bFound; i++) {
try {
var objXML = new ActiveXObject(ARR_ACTIVEX[i]);
STR_ACTIVEX = ARR_ACTIVEX[i];
bFound = true
} catch (objException) {}
}
if (!bFound) {
/* No DOM found, so throw a message and go back */
alert("Creating/editing a data view requires Internet Explorer 5.5 or greater with XML support. Please
upgrade your browser or load the appropriate patches to support XML.");
history.go(-1);
}
} else {
/* Not IE, so throw a message and go back */
alert("Creating/editing a data view requires Internet Explorer 5.5 or greater with XML support. Please
upgrade your browser or load the appropriate patches to support XML.");
history.go(-1);
}
xmlDoc = new ActiveXObject(STR_ACTIVEX)
xmlDoc.async = false;
xmlDoc.setProperty("SelectionLanguage", "XPath");