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

getData method

Gets the data in the specified format from the clipboard through the dataTransfer object or the clipboardData object.

Syntax


 retVal = object.getData(format);

Parameters

format [in]

Type: BSTR

A BSTR that specifies one of the following data format values.

Text

Gets data formatted as text.

URL

Gets data formatted as a URL.

Standards information

There are no standards that apply here.

Remarks

The IHTMLDataTransfer::getData method enforces cross-frame security and allows data transfers only in the same domain. To the user, this means that a selection that is dragged between different security protocols, such as HTTP and HTTPS, fails. In addition, that a selection that is dragged between two instances of the application with different security levels, where the first instance is set to medium and the second is set to high, fails. Finally, that a selection that is dragged into the application from another drag-enabled application, such as Microsoft Word, also fails.

See also

Reference
IHTMLDataTransfer::clearData
IHTMLDataTransfer::setData
Conceptual
About DHTML Data Transfer

 

 

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

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.