Documentation Center

Editor.XML.createNativeXMLHttpRequest

Description

Creates a instance of XMLHttpRequest() similar to the one used by Content Editor itself.

It can be used to load other XML files outside or inside the Editor. The most important reason for using this method is that in Internet Explorer, the responseXML argument will return an XMLDocument() instance that uses the same MSXML version as Xopus does. Using a different MSXML version will cause errors when processing XSL Stylesheets.

Using var xhr = Editor.XML.createNativeXMLHttpRequest(); is equivalent to var xhr = new XMLHttpRequest;.

Syntax

Editor.XML.createNativeXMLHttpRequest () : XMLHttpRequest

Return Value

XMLHttpRequest. The newly created XMLHttpRequest object.