Rockwell Automation 1768-EWEB EtherNet/IP Web Server Module User Manual User Manual
Page 101

Publication ENET-UM527E-EN-P - October 2006
Create Custom Web Pages 101
These functions are contained in the XMLObjectLoaderLib.js library.
For example, the following code is a snippet from a web page which
displays information about the identity object of a device in slot 1 of
the local chassis.
Function
Description
XMLObjectLoader()
This routine initializes the XMLObjectLoader object used to parse the CIP return
data. Set it to a declared variable in the Javascript. For example:
var xol = new XMLObjectLoader();
LoadObject(objectname,
xmlfilename, objectstruct)
The LoadObject function is a member function of the XMLObjectLoader object that
parses the CIP object return string passed in objectstruct, using the XML description file
xmlfilename, and placing the result in the objectname variable, where:
objectnameglobal variable that contains the result, accessible to all scripts within
the page.
xmlfilenameabsolute or relative path to the XML file containing the object description
objectstruct CIP object return string