Forum     

Go Back   Digit Technology Discussion Forum > Software > Programming
Register FAQ Calendar Mark Forums Read

Programming The destination for developers - C, C++, Java, Python and the lot


Reply
 
LinkBack Thread Tools Display Modes
Old 24-08-2011, 03:43 PM   #1 (permalink)
Apprentice
 
meetdenis's Avatar
 
Join Date: Mar 2009
Location: 127.0.0.1
Posts: 53
Default Reading IE favorites from Javascript


Hi,

I have a requirement that a javascript should pull out the favorites from the users IE and
another script when used should be able to save all the bookmarks in to another IE.

First of all, is this possible? If yes, how?

Ok, I just found that such a thing is not possible as it would be a big security risk if some script is able to access your favorites list.

I have another requirement now.
Our client has a portal with multiple sub sites. A visitor, on one click, should be able to add all of the sub sites to his IE favorites. For this I have written something like this -

Code:
var favList = ["www.google.com/&&Google","www.wikipedia.org/&&Wikipedia","www.timesofindia.com&&TOI"];

function addFavs()
{
var fav;
for(x=0; x<=favList.length; x++)
{	fav= favList[x].split("&&");
	window.external.AddFavorite(fav[0],fav[1]);
	fav="";	
}
}
But when I execute this, I get a "Permission Denied" error in IE status bar.
Can anyone help here please..
__________________
Gigabyte GA-EP45-UD3L | C2D E7400 2.8 Ghz | ZOTAC GTX 260^2 896MB | Kingston 4GB 800MHz | WD 500GB + 160GB | Corsair GS 600 | Dell E190S | Sony DRU-880S
meetdenis is offline   Reply With Quote
Advertisements. Register and be a member of the community to get rid of them.
Advertisement

Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


 
Latest Threads
- by Charan
- by Sarath
- by clmlbx

Advertisement




All times are GMT +5.5. The time now is 12:33 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.

Search Engine Optimization by vBSEO 3.3.2