Hello,
I have written a sample application to test window.external.AddFavorite.
Application works fine with IE7 and IE6 .
bookmark.asp
-----------------
My Test asp page Javascript.js
--------------
function MyClass()
{
alert("Hi 1");
var m_text ="" ; //"I am in the class";
var m_url = ""; //"http://www.hypergurl.com";
var m_label =""; //"lisha";
this.SetText = SetText;
this.Seturl = Seturl;
this.SetLabel = SetLabel;
this.DisplayText = DisplayText ;
this.AddToFavorites = AddToFavorites;
function SetText( myText )
{
m_text = myText;
}
function Seturl( myurl )
{
m_url = myurl;
}
function SetLabel( mylabel )
{
m_label = mylabel;
}
function DisplayText()
{
alert("Hi i am in DisplayText()");
alert( m_text );
return ;
}
function AddToFavorites()
{
alert("Hi I am in AddToFavorites()");
if (window.external)
{
alert("i am about to add url to the favorites");
window.external.AddFavorite(m_url,m_label) ;
}
return ;
}
alert("Hi 2");
}
var myClassObj1 = new MyClass();
myClassObj1.SetText("I am in class object");
myClassObj1.Seturl("http://www.myclass.com");
myClassObj1.SetLabel("http://www.mylclass.com");
myClassObj1.DisplayText();
myClassObj1.AddToFavorites();
I am just calling the javascript from the asp page.
I tested the code with bot IE6 and IE7 and its working fine.
Only in IE8 it fails. Can anyone please help me on this issue.
Thanks in advance .
Lisha
"Lisha Jose" wrote:
Quote:
Hello Rob,
My application also uses remote scripting. I have noticed one thing bookmark
works every where except for remote scripting object.
Could you please help me on this issue .
Regards,
Lisha
"Lisha Jose" wrote:
Hi Rob,
My application uses frames and activex controls.
regards
"Lisha Jose" wrote:
Hi Rob,
We are not using partitioned disk. Windows XP is installed on C drive.
I searched for ieframe.dll and it is present at the mentioned location.
Rebooting did not change the behaviour and the problem is still occuring.
regards,
Lisha
"rob^_^" wrote:
Hi,
The instructions at
http://lkamal.blogspot.com/2007/08/gwt- ... found.html appear
correct. They compare with my IE7 and IE8 installations.
Are you using partitioned disks and have you installed Windows XP on a disk
other than C? (or maybe you have diskless clients?)
Using file Explorer go to C:\WINDOWS\system32\ and search for ieframe.dll to
make sure it is there.
If it is there and you have not rebooted your machine since making the
registry change, try rebooting.
Post back and let us know the results. I won't be able to reply for 10hrs
(its night time here).
Regards.
"Lisha Jose"
wrote in message
news:E8798363-33CE-48AB-A3A0-84B332371013@microsoft.com...
Hello Rob,
Thank you very much for your quick response.
I was not able to add bookmark using IE7 aslo. I changed the value of the
following registry key as per the details provided in the link ,
http://lkamal.blogspot.com/2007/08/gwt- ... found.html .
HKEY_CLASSES_ROOT\TypeLib\{EAB22AC0-30C1-11CF-A7EB-0000C05BAE0B}\1.1\0\win32
from "C:\WINDOWS\system32\shdocvw.dll" to
"C:\WINDOWS\system32\ieframe.dll".
Client machine environment details:
OS : Windows Xp Professional SP2
Browser : Upgraded from IE6 to IE8 , Version: 8.0.6001.18702
Note : No other browsers installed on the client machine.
Regards,
Lisha
"rob^_^" wrote:
Hi,
Don't do that.... have you tested your code on XP and Vista machines?
They
are different.... You are mistaken... It works in IE8 and has been
thoroughly tested during the Beta phase.
Which registry key have you changed? Not the HKCR for InternetShortcuts?
All
your users Favorites will fall over and fail to work when they migrate to
Vista or Win7. Change the registry back to what it was... possibly
something
else is changing the InProcessSvr value for the InternetShortcut handler,
possibly Google Chrome or another browser that you have installed on your
client machines and it does not restore the Windows/IE default Internet
Shortcuts handlers.
Here is a javascriptlet I use.
function addToBookMarks(sHref, sTitle)
{
if(document.all)
window.external.AddFavorite(sHref, sTitle);
else if(window.sidebar)
alert("Netscape, Sea Monkey and Firefox users.\nRight-Click this
link/page and select \'Bookmark this link...\' from the drop-down
menu.");
//window.sidebar.addPanel(sTitle, sHref,'');
else if(window.opera)
alert("Opera users.\nRight-Click this link/page and select \'Bookmark
this link...\' from the drop-down menu.");
}
Regards.
"Lisha Jose" Jose@discussions.microsoft.com> wrote in message
news:F6FD6185-67F7-45A5-9D44-C4EBA6D57C61@microsoft.com...
I have an asp web application , where in i need to bookmark an URL. I
am
using
window.external.AddFavorite(szURL, szLabel); command. It was working
with
IE6. In IE7 i had to replace the registry key
"C:\WINDOWS\system32\shdocvw.dll" with
"C:\WINDOWS\system32\ieframe.dll".
But
in IE8 not working , its not even giving any error.
Please help me on this and its a critical issue.