Results 1 to 3 of 3

Thread: Direct menu to open in frame

  1. #1
    Join Date
    Jul 2008
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Smile Direct menu to open in frame

    1) Script Title: Omni Slide Menu

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...lide/index.htm

    3) Describe problem: Make link open in frame, not new page.

    The way I have the site set up, the menu sits in a frame. When a visitor click on a link I was the page to open in that same frame, not a new page. Is this possible? I've tried several of the tage modifiers ( _blank, _parent, _self, _top) and the menu isn't generating a page in the manner I'm hoping for. I'm sure I'm just missing something minor. A working version of the page can be found at:

    www.dywsc.com/omnislideframe.htm

    I'm wondering if I'm going to have to kludge this by adding the menu code to eachpage..

    Again, thanks for the read..

    Steve
    Last edited by minimustangs; 07-31-2008 at 06:39 PM.

  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

    You don't mean here do you?

    Code:
    menuItems:[ // REQUIRED!!
    //[name, link, target, colspan, endrow?] - leave 'link' and 'target' blank to make a header
    ["DYWSC.COM"], //create header
    ["DYWSC Home", "http://www.dywsc.com/home.htm", "_new"],
    ["Events", "http://www.dywsc.com/events.htm", "_new"],
    ["Permits", "http://www.dywsc.com/permits.htm", "_new"],
    ["Photos", "http://www.dywsc.com/photos", "_new"],
    ["Links", "http://www.dywsc.com/links.htm", "_new"],
    ["Contact Us", "http://www.dywsc.com/links.htm", "_new"]
    ]}; // REQUIRED!! do not edit or remove
    If you just leave the target field empty, it will open in the same frame/window for most pages. Frames are the same as windows for linking purposes. Or you could use _self in place of _new. That would even override a base target for the page, if you have one.

    However, if you change the code in the script file, you may need to clear your browser's cache after leaving the page before its effects will be seen.

    One thing you cannot do though is open a page in a frame if that page 'breaks out of frames'. But in a case like that, it would still open in the same window.
    - John
    ________________________

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

  3. #3
    Join Date
    Jul 2008
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    If you just leave the target field empty, it will open in the same frame/window for most pages. Frames are the same as windows for linking purposes. Or you could use _self in place of _new. That would even override a base target for the page, if you have one.

    However, if you change the code in the script file, you may need to clear your browser's cache after leaving the page before its effects will be seen.

    One thing you cannot do though is open a page in a frame if that page 'breaks out of frames'. But in a case like that, it would still open in the same window.
    Thanks John for responding. I ended up using _self. I discovered though I had to put the navigation menu code on each web page to give the appearance that the navigation was anchored to the left side of the screen, since clicking a link generates a new page and makes the nav mneu "dissapear". I'm comfortable with the way this works, and chances are only people like yourself will even know..

    Steve

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
  •