Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    Senior Coder NancyJ's Avatar
    Join Date
    Feb 2005
    Location
    Bradford, UK
    Posts
    3,172
    Thanks
    19
    Thanked 65 Times in 64 Posts

    Add to Favorite FF2

    On our site we have an add to favorites link that only displays in IE - because it doesnt work in other browsers.
    The idea being that if it wont work then you wont see the link.
    The code says
    if(window.external)
    {
    //write the link
    }

    But in FF2 the window.external condition is returning true but window.external.AddFavorite is not a function (it says)

    how can we make this work in FF2?

  • #2
    Banned
    Join Date
    May 2006
    Location
    England
    Posts
    664
    Thanks
    0
    Thanked 84 Times in 84 Posts
    Quote Originally Posted by NancyJ View Post
    On our site we have an add to favorites link that only displays in IE - because it doesnt work in other browsers.
    The idea being that if it wont work then you wont see the link.
    The code says
    if(window.external)
    {
    //write the link
    }

    But in FF2 the window.external condition is returning true but window.external.AddFavorite is not a function (it says)

    how can we make this work in FF2?
    Code:
    if( window.external && typeof window.external.addFavorite != 'undefined' )
     window.external.addFavorite(...,...);

  • #3
    Senior Coder NancyJ's Avatar
    Join Date
    Feb 2005
    Location
    Bradford, UK
    Posts
    3,172
    Thanks
    19
    Thanked 65 Times in 64 Posts
    works perfectly, cheers


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •