Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

add a link to favorites

Status
Not open for further replies.

bluecoco

Programmer
Apr 30, 2001
4
0
0
AE
hi guyz,
is there anybody knows how to add a link to favorites usin' coldfusion?
with regards
redcoco >> never lose hope ..
 
Ask this in the Javascript or VBscript forum, maybe they will have a definitive answer. I do not think there is a way to open favorites, but there may be a way to add to them.
 
Hey Blue,
Yep it is really a script thing, but if you haven't heard from another forum, try this... Adding Faves doesn't work with NS, so maybe having an alert letting your user know?

<HTML>
<HEAD>
<SCRIPT language=&quot;JAVASCRIPT&quot;>

function Faves()
{
var url=&quot; var title=&quot;Your CF Site Name&quot;;
if ((navigator.appName == &quot;Microsoft Internet Explorer&quot;) && (parseInt(navigator.appVersion) >= 4))
{
window.external.AddFavorite (url,title);
}
else
{
var msg = &quot;Don't forget to bookmark us!&quot;;
if(navigator.appName == &quot;Netscape&quot;) msg += &quot; (CTRL-D)&quot;;
alert(msg);
}
}
</SCRIPT>
</HEAD>
<BODY>
<A href=&quot;#&quot; onClick=&quot;Faves()&quot;>Add to favourite</A>
</BODY>
</HTML>

.... This is quite a common bit of script, so you'll probably have found it anyway.

Cheers,

K
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top