Click here to Skip to main content
Licence 
First Posted 20 Mar 2003
Views 52,041
Bookmarked 8 times

An example of a bug in HTC ViewLink Documents

By | 20 Mar 2003 | Article
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

About the Author

cowtram



United States United States

Member



Sign Up to vote   Poor Excellent
Add a reason or comment to your vote: x
Votes of 3 or less require a comment

Comments and Discussions

 
You must Sign In to use this message board. (secure sign-in)
 
Search this forum  
 FAQ
    Noise  Layout  Per page   
  Refresh
RantElement HTCs with ViewLink are the sexiest thing to hit the web, EVER! PinmemberMember 24070143:15 24 Apr '08  
GeneralThere is a fix for this... Pinmembertad_orman10:27 12 Nov '03  
GeneralSolution PinmemberCodeWrangler0:32 23 Oct '03  
GeneralThis isn't a bug I'm afraid PinmemberCaptain Scarlett4:02 28 Mar '03  
GeneralRe: This isn't a bug I'm afraid Pinmembercowtram22:42 31 Mar '03  
GeneralRe: This isn't a bug I'm afraid PinmemberCaptain Scarlet23:34 31 Mar '03  
GeneralRe: This isn't a bug I'm afraid Pinmembercowtram0:15 1 Apr '03  
QuestionWhere is the source codes? Pinmemberpsusong5:05 21 Mar '03  
AnswerRe: Where is the source codes? Pinmembercowtram5:50 21 Mar '03  

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

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

Permalink | Advertise | Privacy | Mobile
Web03 | 2.5.120517.1 | Last Updated 21 Mar 2003
Article Copyright 2003 by cowtram
Everything else Copyright © CodeProject, 1999-2012
Terms of Use
Layout: fixed | fluid