Results 1 to 7 of 7

Thread: Bookmarked Site Opening In A Frame

  1. #1
    Join Date
    Jan 2011
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question Bookmarked Site Opening In A Frame

    1) Script Title: Bookmark Site Script

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex9/addbook.htm

    3) Describe problem: When I click "bookmarks" and select the page I have this script on, it opens the page in a small frame (150 pixels or so wide) on the left hand side of my currently opened window rather than opening it in place of my current window. I'm using a newer version of Firefox, if that has anything to do with it.

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Yes it does, and no it doesn't.

    It does create a 'sidebar' bookmark in Firefox (all Mozilla based browsers, perhaps others). It doesn't matter that you're using a newer version. It's been doing this since before I can remember. Others, including myself have tried to make this an ordinary bookmark in Firefox. I'm not aware of any who've succeeded. So, as far as I know, it's either that, or no bookmark in those browsers. The user may always convert it to an ordinary bookmark later. I think it's just a checkbox that needs to be ticked or unticked, or something relatively simple like that.

    I could be wrong about no one ever figuring that out though. If there's any information about that on this forum, it would probably be in this thread:

    http://www.dynamicdrive.com/forums/s...3821#post73821
    - John
    ________________________

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

  3. #3
    Join Date
    Jan 2011
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thanks for the reply. Any idea where I can get a bookmark script I can use with an image that doesn't do this?

  4. #4
    Join Date
    Jan 2011
    Posts
    50
    Thanks
    0
    Thanked 1 Time in 1 Post

    Default

    hi...i've been using this for my bookmarks but i don't really use firefox..just chrome and apple..

    http://www.dynamicdrive.com/dynamicindex9/addbook.htm

    i don't know if this helps but try..

  5. #5
    Join Date
    Jan 2011
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thanks for the reply Cindylou, but that's the one I'm using. All of my other bookmarks are opening in their full window so it's not Firefox itself, it's something to do with the script. Maybe there's a modification that can be made to keep this from happening?

  6. #6
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    It is Firefox itself. As I said, there's no other way I'm aware of to use javascript to get Firefox to even make a bookmark. So it's either that or no bookmark. What this is known as is a sidebar bookmark. At the time of its creation or at any time by editing its properties later, all the user has to do to make it a regular bookmark is to untick the checkbox labeled:

    Load this bookmark in the sidebar
    I know this isn't the answer you are looking for, and there may be some clever way around it. If there is, I've never heard of it, and I suspect there really isn't.

    The best I can think of would be to detect Firefox and alert the user so that they may untick that box at the time the bookmark is created:

    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 */
    function bookmarksite(title,url){
    if (window.sidebar){ // firefox
    	alert('This will create a "sidebar" bookmark. Untick the:\n\n"Load this bookmark in the sidebar"\n\ncheckbox to make it a normal bookmark.');
    	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>
    - John
    ________________________

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

  7. #7
    Join Date
    Jan 2011
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Ahh, I see. Other sites don't do that because I manually added them

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
  •