Final Fantasy Forums
Go Back   Final Fantasy Forums > Final Fantasy Extreme Discussion Central > 1001001011
Final Fantasy Final Fantasy Forums Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

1001001011 Come to this forum to get technical help, or just discuss technology as a whole; computers, electronics, phones, and other accessories that make us drool.

Reply
 
LinkBack Thread Tools Display Modes
Old 03-29-2007, 08:00 PM   #1 (permalink)
Kionae
Senior Member
 
Kionae's Avatar
 
Join Date: Feb 2007
Location: Illinois
Age: 27
Posts: 751
Rep Power: 5 Kionae is on a distinguished road
Send a message via MSN to Kionae
Default Javascript question (or... Why does Safari ****ing hate me?)

Ok... Let's say that someone (me) wants to create one of those nifty little "Bookmark this site!" links so that all one has to do is click the link and boom! Bookmarked.

So here's what I'm using (not my code... javascript really isn't my thing. I found this in a script library.):

Code:
<script type="text/javascript">

function bookmarksite(title,url){
if (window.sidebar) // firefox
	window.sidebar.addPanel(title, url, "");
else if(window.opera && window.print){ // opera
	var elem = document.createElement('a');
	elem.setAttribute('href',url);
	elem.setAttribute('title',title);
	elem.setAttribute('rel','sidebar');
	elem.click();
} 
else if(document.all)// ie
	window.external.AddFavorite(url, title);
}
</script>
Code:
<li><a href="javascript:bookmarksite('My Site','http://www.mysite..com')">Bookmark Us!</a></li>
Now, this works beautifully in IE and Firefox, but it doesn't do a damn thing in Safari. Is there a way to invoke the "Add Bookmark" dialogue box in Safari using javascript? Or am I stuck with only supporting every other browser on the planet.

And while we're on the subject... WHY DOES SAFARI SUCK SO MUCH?! I have to fight with it constantly when if comes to the nifty things everyone else supports. :P
__________________


Quote:
Originally Posted by Rhea
I think I have a lesbo crush on Kionae. ^______________^
<3 From Jak.
Kionae is offline   Reply With Quote
Old 04-02-2007, 06:21 PM   #2 (permalink)
YopY
BOOM HEADSHOT!
 
YopY's Avatar
 
Join Date: Jan 2007
Age: 22
Posts: 299
Rep Power: 4 YopY is on a distinguished road
Default

According to this page, only IE allows a site to add itself to a favorites link :/. Haven't been able to find anything either using Googol, but I'm sure you already tried that.

Either all the stuff I found are carbon-copies of the one you posted above, and/or they haven't been tested in Safari. In other words, from what I've seen all you can do is show a message about how to add the page to the user's bookmarks in Safari when the browser is Safari.
YopY is offline   Reply With Quote
Old 04-03-2007, 05:13 PM   #3 (permalink)
Kionae
Senior Member
 
Kionae's Avatar
 
Join Date: Feb 2007
Location: Illinois
Age: 27
Posts: 751
Rep Power: 5 Kionae is on a distinguished road
Send a message via MSN to Kionae
Default

Figures. I always knew Safari was ****tarded. I can't find a decent javascript WYSIWYG editor that works in it, either.
__________________


Quote:
Originally Posted by Rhea
I think I have a lesbo crush on Kionae. ^______________^
<3 From Jak.
Kionae is offline   Reply With Quote
Old 04-04-2007, 06:48 AM   #4 (permalink)
YopY
BOOM HEADSHOT!
 
YopY's Avatar
 
Join Date: Jan 2007
Age: 22
Posts: 299
Rep Power: 4 YopY is on a distinguished road
Default

Put a giant Firefox ad on your site if Safari is detected, .
YopY is offline   Reply With Quote
Old 04-04-2007, 12:10 PM   #5 (permalink)
Kionae
Senior Member
 
Kionae's Avatar
 
Join Date: Feb 2007
Location: Illinois
Age: 27
Posts: 751
Rep Power: 5 Kionae is on a distinguished road
Send a message via MSN to Kionae
Default

Quote:
Originally Posted by YopY View Post
Put a giant Firefox ad on your site if Safari is detected, .
I don't think my boss would like that. They're pretty Mac obsessed here, and Safari seems to be the browser of choice for the non-web-addicted (i.e. those who haven't yet learned the joys of using FireFox). XD
__________________


Quote:
Originally Posted by Rhea
I think I have a lesbo crush on Kionae. ^______________^
<3 From Jak.
Kionae is offline   Reply With Quote
Reply


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

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Har Di Fucking Har Har King Hydro Green Eggs and SPAM 23 06-25-2007 11:48 PM
''You're fucking stupid.'' Ugly Casanova Gathering Square 18 06-02-2007 11:31 PM
You're all fucking twats Naked Gackt Green Eggs and SPAM 19 05-16-2007 04:49 PM
How fucking sad Jak Green Eggs and SPAM 16 03-20-2007 11:27 AM
WHAT THE FUCKING HELL IS UP WITH THAT? I AM THE CAPS MONSTER Feedback & Inquiry 11 02-21-2007 07:28 PM


All times are GMT -4. The time now is 03:27 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.0.0