Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 29

Thread: [DHTML] Modified Bookmark Site script

  1. #11
    Join Date
    Feb 2007
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    I've got the same problem/question:
    is there a way for Mozilla bookmarked pages to open in the main screen rather than the sidebar?

  2. #12
    Join Date
    Apr 2007
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Script not working in version 9.20 of Opera

    This script works in Opera v9.10 but has anyone had troubles in opera v9.20, I can't seem to get it working

  3. #13
    Join Date
    Apr 2007
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by Gephri View Post
    I've got the same problem/question:
    is there a way for Mozilla bookmarked pages to open in the main screen rather than the sidebar?
    Yeah, I've got the same problem. Anyone have any ideas?

  4. #14
    Join Date
    May 2007
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Hello,

    How do I modify the code so that the page does NOT load in FF's Side BAR? Every time I use the code, the "Load this bookmark in the sidebar" is checked. I do not want that. How do I turn that off?

    Thanks,

    -Roger

  5. #15
    Join Date
    May 2007
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Hello,

    I guess there's still no solution to the Firefox/sidebar problem?
    Thanks for the script anyway!

    Pei

  6. #16
    Join Date
    Jun 2007
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default this sidebar issue seems material

    is there any reason it wouldn't be mentioned on the download page? Anyone have a fix for it?

  7. #17
    Join Date
    Jun 2007
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    I can confirm what Revelation 888 said
    This doesn't work in Opera >9.2 (I'm using 9.21) It just takes you to the 'bookmark' page as a link

  8. #18
    Join Date
    Oct 2007
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Still no solutions for the sidebar thing ? I dont use any frames or anything and it uses the side bar, almost makes it worse than it not working in Firefox

    Anyone got any ideas on a work around for this ?

  9. #19
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    29,005
    Thanks
    44
    Thanked 3,204 Times in 3,166 Posts
    Blog Entries
    12

    Default

    Quote Originally Posted by pjrobertson123 View Post
    I can confirm what Revelation 888 said
    This doesn't work in Opera >9.2 (I'm using 9.21) It just takes you to the 'bookmark' page as a link
    I didn't write this script and don't particularly like the 'bookmark this' concept, the browser already has that capability. Each browser does it differently, and not all browsers expose this capability to javascript as fully as does IE. This result in Opera seems adequate to me.

    Quote Originally Posted by chornee View Post
    Still no solutions for the sidebar thing ? I dont use any frames or anything and it uses the side bar, almost makes it worse than it not working in Firefox :(

    Anyone got any ideas on a work around for this ?
    See above. In FF the same basic concept holds, it does however expose the sidebar bookmark to scripting. This is an acceptable fall back, but if you want it to do nothing in FF, just replace the code for FF with:

    return;

    Code:
    <script type="text/javascript">
    /***********************************************
    * Bookmark site script-  Dynamic Drive DHTML code library (www.dynamicdrive.com)
    * This notice MUST stay intact for legal use
    * Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code
    ***********************************************/
    
    /* Modified to support Opera (v9 tested) */
    function bookmarksite(title,url){
        if (window.sidebar) // firefox
        	return;
    	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>
    It would also be a nice touch to script the link. Change this:

    Code:
    <a href="javascript:bookmarksite('Yahoo', 'http://www.yahoo.com');">Bookmark Yahoo</a>
    to:

    Code:
    <script type="text/javascript">
    if(document.documentElement.filters||window.opera)
    document.write('<a href="javascript:bookmarksite(\'Yahoo\', \'http://www.yahoo.com\');">Bookmark Yahoo</a>');
    </script>
    That way only IE and Opera will see it.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  10. #20
    Join Date
    Oct 2007
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    I dont think people want it to do nothing the question was more if there is any way possible for it to work correctly. But it doesnt look like there is.

    O well, I dont see why the only way to do it in Firefox is in the sidebar, thats just stupid.

Bookmarks

Posting Permissions

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