Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

create method

Creates a new XDomainRequest object.

Internet Explorer 8

Syntax


HRESULT retVal = object.create(ppxdr);

Parameters

ppxdr [out, retval]

Type: IHTMLXDomainRequest

A pointer to the new XDomainRequest object.

Return value

Type: HRESULT

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Examples

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();

See also

Reference
IHTMLXDomainRequestFactory
IHTMLXDomainRequest
XDomainRequest

 

 

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.