Introduction
HTC ViewLink Content does not allow (successful) cut/copy/paste operations when it is viewed via an IFRAME. The context menu is displayed but does not perform successful operations. This does not occur when the same file is viewed in its own window.
Given an IFRAME in an HTML file:
<HTML><HEAD></HEAD><BODY>
<IFRAME src=page1.html></IFRAME>
</BODY></HTML>
And this HTML file (page1.html):
<HTML xmlns:myNameSpace>
<?IMPORT namespace="myNameSpace" implementation="IMP.htc" >
<HEAD>
</HEAD>
<BODY>
<myNameSpace:myTag />
</BODY>
</HTML>
And this HTC ViewLink Behavior Implementation file (Imp.htc):
<PUBLIC:COMPONENT tagName="myTag">
<PUBLIC:DEFAULTS viewLinkContent/>
</PUBLIC:COMPONENT>
<BODY>
Cannot cut/copy this text when parent document is in an IFRAME"
<INPUT VALUE="Cannot cut/copy this text when parent document is in an IFRAME">
</BODY>
Cut/Copy/Paste operations are not successful on the HTC ViewLink Behavior Implementation Content file if the content is being viewed thru an IFRAME or FRAME
ie IFRAME-->HTML File containing Master Element-->HTC ViewLink Content.
Cut/Copy/Paste operations are successful however if the content is not viewed thru an IFRAME or FRAME
ie HTML File containing Master Element-->HTC ViewLink Content.
What do you think?
This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.
A list of licenses authors might use can be found here