Results 1 to 3 of 3

Thread: Display individual frames at run time

  1. #1
    Guest
    I need to have 3 frames on a page out of which only one must be displayed at any time.
    Something like this:

    One page with 3 frames - only the first is displayed initially but on click of a button on frame 1, display just frame 2 and click of another button, display frame3

    Essentially all frames need to be on a single page (so that I dont have to use window.open or window.navigate and at run time remove current frame and display another .

    Also in many of the replies there are references to window.frames[0].location , but this gives an error while running. Is there something wrong here?

    Thanks for any help.

  2. #2
    Guest
    One way I've been able to do something like this is with JavaScript that looks like:

    parent.framename.navigate("whatever.htm")

    'parent' refers to the browser window, and 'framename' to the name of the frame inside the window (just make sure you include a NAME attribute with your FRAME in your FRAMESET).

    You could put it in a button like so:

    <BUTTON onClick="parent.listing.navigate("help_exp.htm")">Populate a frame</BUTTON>

    You might want to put blank pages inside your frames to begin with so that they're populated.

    Good luck,
    Paul

  3. #3
    Guest
    Thanks for the reply.
    Displaying the frames at run time is fine but, my main idea was to load just a single page so that there is nothing to go "back" to.
    Is that possible?



Posting Permissions

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



Click Here to Expand Forum to Full Width