Click here to Skip to main content
15,867,568 members
Articles / Web Development / HTML
Article

An example of a bug in HTC ViewLink Documents

Rate me:
Please Sign up or sign in to vote.
3.00/5 (3 votes)
20 Mar 2003 65.4K   8   9
This example highlights a bug in the implementation of HTC ViewLink Files in Internet Explorer

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?

License

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


Written By
United States United States
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions

 
RantElement HTCs with ViewLink are the sexiest thing to hit the web, EVER! Pin
froddy24-Apr-08 3:15
froddy24-Apr-08 3:15 
GeneralThere is a fix for this... Pin
Tad Orman12-Nov-03 10:27
Tad Orman12-Nov-03 10:27 
GeneralSolution Pin
CodeWrangler23-Oct-03 0:32
CodeWrangler23-Oct-03 0:32 
GeneralThis isn't a bug I'm afraid Pin
Captain Scarlet28-Mar-03 4:02
Captain Scarlet28-Mar-03 4:02 
GeneralRe: This isn't a bug I'm afraid Pin
cowtram31-Mar-03 22:42
cowtram31-Mar-03 22:42 
GeneralRe: This isn't a bug I'm afraid Pin
Captain Scarlet31-Mar-03 23:34
Captain Scarlet31-Mar-03 23:34 
GeneralRe: This isn't a bug I'm afraid Pin
cowtram1-Apr-03 0:15
cowtram1-Apr-03 0:15 
QuestionWhere is the source codes? Pin
psusong21-Mar-03 5:05
psusong21-Mar-03 5:05 
AnswerRe: Where is the source codes? Pin
cowtram21-Mar-03 5:50
cowtram21-Mar-03 5:50 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.