JavaScript Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignJavaScript Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old April 13th, 2004, 05:19 AM
crackwombat crackwombat is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2003
Location: Currently Poland, sometimes London, originally Wales . . .
Posts: 154 crackwombat User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 12 h 6 m 43 sec
Reputation Power: 6
Send a message via Yahoo to crackwombat
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

Reply With Quote
  #2  
Old April 13th, 2004, 01:10 PM
kicken's Avatar
kicken kicken is offline
Wiser? Not exactly.
Dev Shed Specialist (4000 - 4499 posts)
 
Join Date: May 2001
Location: Ft Myers, FL
Posts: 4,388 kicken User rank is General (90000 - 100000 Reputation Level)kicken User rank is General (90000 - 100000 Reputation Level)kicken User rank is General (90000 - 100000 Reputation Level)kicken User rank is General (90000 - 100000 Reputation Level)kicken User rank is General (90000 - 100000 Reputation Level)kicken User rank is General (90000 - 100000 Reputation Level)kicken User rank is General (90000 - 100000 Reputation Level)kicken User rank is General (90000 - 100000 Reputation Level)kicken User rank is General (90000 - 100000 Reputation Level)kicken User rank is General (90000 - 100000 Reputation Level)kicken User rank is General (90000 - 100000 Reputation Level)kicken User rank is General (90000 - 100000 Reputation Level)kicken User rank is General (90000 - 100000 Reputation Level)kicken User rank is General (90000 - 100000 Reputation Level)kicken User rank is General (90000 - 100000 Reputation Level)kicken User rank is General (90000 - 100000 Reputation Level)  Folding Points: 153387 Folding Title: Super Ultimate Folder - Level 1Folding Points: 153387 Folding Title: Super Ultimate Folder - Level 1Folding Points: 153387 Folding Title: Super Ultimate Folder - Level 1Folding Points: 153387 Folding Title: Super Ultimate Folder - Level 1Folding Points: 153387 Folding Title: Super Ultimate Folder - Level 1Folding Points: 153387 Folding Title: Super Ultimate Folder - Level 1
Time spent in forums: 1 Month 3 Weeks 3 Days 10 h 30 m 3 sec
Reputation Power: 959
Send a message via ICQ to kicken Send a message via AIM to kicken Send a message via MSN to kicken
Quote:
Originally Posted by crackwombat
...
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?


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!)


Reply With Quote
  #3  
Old April 13th, 2004, 02:14 PM
soon soon is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2003
Location: Derby UK
Posts: 78 soon User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 h 14 m 46 sec
Reputation Power: 6
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

Reply With Quote
  #4  
Old May 19th, 2004, 09:20 PM
URSLOWR URSLOWR is offline
<? unset($sanity) ?>
Dev Shed Novice (500 - 999 posts)
 
Join Date: Jul 2003
Posts: 613 URSLOWR User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 1 m 38 sec
Reputation Power: 6
Quote:
Originally Posted by kicken
I would sure hope it's not possible. That'd be one HUGE security/privicy violation.


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

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignJavaScript Development > JavaScript: Already added to favorites?


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump



 Free IT White Papers!
 
How to Present Effectively Online
This white paper offers practical and actionable advice on the key steps that any presenter should consider as they plan and execute a Webinar or online meeting.

 
Open Source Security Myths
Open Source Software (OSS) is computer software whose source code is available to the general public with relaxed or non-existent intellectual property restrictions (or arrangement such as the public domain), and is usually developed with the input of many contributors.

 
Power and Cooling Capacity Management for Data Centers
This paper describes the principles for achieving power and cooling capacity management.

 
Scalable, Fault-Tolerant NAS for Oracle - The Next Generation
For several years NAS has been evolving as a storage alternative for Oracle databases, and for good reason: NAS is quite often the simplest, most cost-effective storage approach for Oracle. Learn about the benefits that HP's approach to scalable NAS brings to Oracle environments in this comprehensive white paper.

 
Understanding Web Application Security Challenges
This white paper discusses many common threats and preventive measures for Web application security, and explains what you can do to help protect your organization.

 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2009 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway
Stay green...Green IT