240 CHAPTER 8 SCRIPTING IN (Web design) THE BROWSER
240 CHAPTER 8 SCRIPTING IN THE BROWSER nextNode() This method returns the next node in the node collection: oDocument.getElementsByTagName(’title’)[0].nextNode(); The method will return the first node if no previous node has been selected. You can use the reset()method to return to the starting point. selectNodes(patternString) The selectNodes() method creates a NodeList of all nodes that match the specified XPath expression: oDocument.selectNodes(”DVD/title”); If no match is made, the method returns null. selectSingleNode(patternString) This method works in the same way as the selectNodes() method, except that it selects the first matching node: oDocument.selectSingleNode(”DVD/title”); transformNode(styleSheet) The transformNode() method performs XSLT transformations on the current node and returns the result of the transformation as a string. This method takes a stylesheet argument, which is a DOM Document containing the XSLT stylesheet: oDocument.transformNode(oXSLT); transformNodeToObject(styleSheet, OutputDOM) The transformNodeToObject() method is very similar to the previous method. The difference is that it fills the OutputDOM document with the result of the transformation: oDocument.transformNodeToObject(oXSLT, oTransDocument); XMLHttpRequest ActiveX Object MSXML also includes an ActiveX object called the XMLHttpRequest object. This object provides a mechanism for content to be loaded from the server and is at the heart of an approach called Asynchronous JavaScript and XML (Ajax). Mozilla and Opera offer native support for this object, and you ll find out more about both the object and Ajax in Chapter 9.
We highly recommend you visit web and email hosting services if you need stable and cheap web hosting platform for your web applications.