Creates a new XDomainRequest object.
HRESULT create( IHTMLXDomainRequest **ppxdr );
- [out, retval] A pointer to the new XDomainRequest object.
Returns S_OK if successful, or an error value otherwise.
This method is called when the factory object is invoked with DISPID DISPATCH_CONSTRUCT. Such invocation creates and returns an object that supports the IHTMLXDomainRequest interface. The method is called explicitly on the factory object, or implicitly by use of the the new syntax. The following example demonstrates how this might be accomplished in script.// Implicit create, with new oXDomainRequest = new XDomainRequest(); // Explicit create, with factory object factoryObj = window.XDomainRequest; oXDomainRequest = factoryObj.create();