469,353 Members | 2,066 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,353 developers. It's quick & easy.

IE & addToFavorites - Windows XP, "permission denied"

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.

Aug 12 '05 #1
3 6288
I meant:

window.external.AddFavorite()

not

addToFavorites()

Thanks.
Aug 12 '05 #2
VK

Robert Oschler wrote:
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.

Aug 12 '05 #3
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?
Aug 12 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Mark E. Hamilton | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
1 post views Thread by Marylou17 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.