Tool that worked from IE4-Ie8 no longer works - by Susan Bradley

Status : 

  By Design<br /><br />
		The product team believes this item works according to its intended design.<br /><br />
		A more detailed explanation for the resolution of this particular item may have been provided in the comments section.


ID 654260 Comments
Status Closed Workarounds
Type Bug Repros 1
Opened 3/29/2011 11:18:52 AM
Access Restriction Public
Primary Feedback Item 693109

Description

Asked over here: http://social.technet.microsoft.com/Forums/en/ieitprocurrentver/thread/f4e0842c-86d9-43d2-9193-c2a0e4fe4303

Was told to post over here even though it was already asked over here

http://social.msdn.microsoft.com/Forums/is/iewebdevelopment/thread/774b93e3-ccd1-468f-a5e3-adcf5f9d5835

now told to bug it in here -- http://social.msdn.microsoft.com/Forums/en-US/iewebdevelopment/thread/c85c8793-3e68-4211-a5e4-41444977a263/

 I use this titleurl file and it doesn't work in IE9 The htm has this: The registry key adds a value in the right mouse click context menu to call this html file and then it copies the title and url of a page into your clip board. On IE9 it fails with An error has occurred in the script on this page Line 17 Char 3 Error Permission denied Code 0 url: file:///c:/windows/web/TITLE_URL.HTM What do I need to do to get this to work?

<!--
Title_URL right-click context tool for IE4+
Bill James - bill@billsway.com - rev 2 Nov 2000
-->
<form name=a><textarea name=a1></textarea>
<SCRIPT language=javascript defer>
//To disable popup confirmation, change "showConfirm=1" to "showConfirm=0"
var showConfirm=0
var oExtArgs=external.menuArguments;
var sTitle=oExtArgs.document.title;
if(sTitle=='')(sTitle='No Title');
/*
kludge - to keep newlines we must set text in
textarea, then create textRange and copy that.
*/
var oTarget=document.a.a1;
oTarget.value=sTitle+': \r\n'+oExtArgs.location.href+'\r\n';
oTarget.select();
var oTextRange=oTarget.createTextRange();
oTextRange.execCommand('copy');
</SCRIPT>
Sign in to post a comment.
Posted by Microsoft on 10/19/2011 at 8:35 AM
Thank you for your feedback. This turns out to be the same issue as Connect Feedback 693109. Please follow the progress of this bug there. Thank you.

Best regards,

The Internet Explorer Team
Posted by Microsoft on 5/30/2011 at 5:52 PM
Thank you for your feedback.

We were able to reproduce the issue and are investigating it.

Please implement the workaround available today:

Posted by Ramesh Srinivasan on 3/31/2011 at 5:41 AM
Changing the following line:

oTarget.value=sTitle+': \r\n'+oExtArgs.location.href+'\r\n';

to

oTarget.value=sTitle+': \r\n'+oExtArgs.document.URL+'\r\n';

Makes it work in IE9/IE8 (and probably in earlier versions as well).

Credits to Socrates (Soc) Trikes, IE MVP



Best regards,

The Internet Explorer Team
Posted by Smittychat on 3/30/2011 at 8:26 AM
Re: Edit a Bug. It's been requested. You can vote on it here.
https://connect.microsoft.com/Connect/feedback/details/643473/edit-comment-option
Posted by Susan Bradley on 3/29/2011 at 11:47 PM
Another user, Kevin Su-, has replied to a thread you have subscribed to in the Internet Explorer Forum.

Thread Title How do I get this title url menu to work in IE9?
Started by: Susan Bradley

Reply:

Hello Susan,



Thank you for your post and glad to see you here.



I have done a lot of research on this issue, and I can reproduce it from my side. Seems that the issue happens due to the following line (line 17) of the Java script.



oTarget.value=sTitle+': \r\n'+oExtArgs.location.href+'\r\n';



After some further test, I found “oExtArgs.location.href” seems by default not compatible with IE9. For example, if we change the script line above to this:



oTarget.value=sTitle+': \r\n'+'\r\n';



or



oTarget.value=sTitle+': \r\n'+location.href+'\r\n';



Then the script does work, but cannot copy the URL. Regarding this issue, I will do some further research and then let you know how it goes. However, I appreciate your understanding that script is not supported in the forum, and I may not find out the root cause since I’m not familiar with script.



Thanks for your time and I look forward to being in touch with you.
Best regards,

Kevin Su
Partner Online Technical Community
-----------------------------------------------------------------------------------------
We hope you get value from our new forums platform! Tell us what you think:
http://social.microsoft.com/Forums/en-US/partnerfdbk/threads
------------------------------------------------------------------------------------------
This posting is provided "AS IS" with no warranties, and confers no rights.

The Microsoft Developer Network
Posted by Susan Bradley on 3/29/2011 at 11:23 AM
Do you know you can't edit a bug once you've posted it?

The download for the title url tool is here:

http://www.winhelponline.com/blog/copy-title-and-url-menu-extension-for-internet-explorer/