|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
JavaScript: Already added to favorites?
Hi Everyone!
I'm looking to add a feature to a site I'm making to add the site to a user's favorites in IE. I've know the JavaScript to add a URL to the favorites list, however what I would like to know is how to tell if the current URL has already exists in the favorites list. I would like to know this so that I can display a button to add the URL to the favorites only if it isn't in the favorites already. On a similar subject, does anyone know if it is possible to read the full list of favorites in IE with JavaScript? The idea I have is to read the contents of the IE favorites list with JavaScript, use a bit of PHP to store it server-side and then, from another machine, retrieve the server stored list of favorites and add them to the favorites list of the other machine. I know all I need apart from the initial reading the favorites list in IE. Any ideas? Thanks very much for any help anyone can offer!! Regards, CW |
|
#2
|
||||
|
||||
|
Quote:
I would sure hope it's not possible. That'd be one HUGE security/privicy violation.
__________________
Spidermonkey Tutorial; Fight me: http://aoeex.mybrute.com http://www.aoeex.com/gmap.php - Put yourself on the map (Now Updated!) |
|
#3
|
|||
|
|||
|
script for bookmarks
You might like to try something like this that works for IE, and offers something useful for NN, etc
<script type="text/javascript" language="javascript"> var txt = "Bookmark this page"; var url = "Url of site - could use PHP to grab the particular page URL if needed"; var who = "Name of site"; var ver = navigator.appName; var num = parseInt(navigator.appVersion); if ((ver == "Microsoft Internet Explorer")&&(num >= 4)) { document.write('<A class="brown" HREF="javascript:window.external.AddFavorite(url,who);" title=" LEFT-click HERE to bookmark this page. Works in IE browsers only. " '); document.write('onMouseOver=" window.status='); document.write("txt; return true "); document.write('"onMouseOut=" window.status='); document.write("' '; return true "); document.write('">'+ txt + '</a>'); }else{ txt += " <span class='popup1' title=' RIGHT-click HERE to bookmark page '>Bookmark</span>"; document.write(txt); } </script> <noscript> <span class="whatever" title=" Right-click here to bookmark and select Add to favorites/bookmarks, or click CTRL + D ">Bookmark</span> </noscript> best wishes tony |
|
#4
|
|||
|
|||
|
Quote:
Why? Google checks your computer to see if your homepage is google.com.
__________________
"I haven't failed, I've found 10,000 ways that won't work." - Thomas Edison -=Rick=- Chat Refinance Loans |
![]() |
| Viewing: Dev Shed Forums > Web Design > JavaScript Development > JavaScript: Already added to favorites? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|