IE & addToFavorites - Windows XP, "permission denied"

R

Robert Oschler

I have a Javascript bookmarklet that people want to add to their bookmarks.
In Win 2k and below, addToFavorites() works fine. In Windows XP it
generates a permission error and does nothing except show the "javascript
error" icon in the lower left hand corner of Internet Explorer.

My questions:

- Is there a way to do this that works with Windows XP?
- If it's a security level thing, is there a way for the Windows XP user to
"whitelist" my site?
- Is there a way to get this to work, that does not involve the user
lowering their security level, which I won't ask them to do?

If there is no reasonable way to get this done, what's the most convenient
way I can instruct the user to do, to add my bookmarklet to their IE
Favorites list?

Thanks.
 
V

VK

Robert said:
window.external.AddFavorite()

<button onclick="window.external.AddFavorite(location.href,
document.title);">test</button>

Works just fine on XP SP1

This method doesn't work for HTA's.
Otherwize the problem must be somewhere else.
 
R

Randy Webb

Robert Oschler said the following on 8/11/2005 8:22 PM:
I have a Javascript bookmarklet that people want to add to their bookmarks.
In Win 2k and below, addToFavorites() works fine. In Windows XP it
generates a permission error and does nothing except show the "javascript
error" icon in the lower left hand corner of Internet Explorer.

Double-click that icon and see what the error message says.
My questions:

- Is there a way to do this that works with Windows XP?
Yes.

- If it's a security level thing, is there a way for the Windows XP user to
"whitelist" my site?

Probably not for that use.
- Is there a way to get this to work, that does not involve the user
lowering their security level, which I won't ask them to do?
Yes.

If there is no reasonable way to get this done, what's the most convenient
way I can instruct the user to do, to add my bookmarklet to their IE
Favorites list?

"To bookmark this page, right click and choose 'Add to Favorites'"
somewhere on the page. Along with possible other directions for other
browsers.

--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weekly
Answer:It destroys the order of the conversation
Question: Why?
Answer: Top-Posting.
Question: Whats the most annoying thing on Usenet?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,537
Members
45,020
Latest member
GenesisGai

Latest Threads

Top