Results 1 to 2 of 2

Thread: Is there any way to pass variables?

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Jun 2000
    Posts
    299
    I want to have two frames.
    One frame is the main frame which i want to be controlled to go in a sequencial fashion through the web site, by the second frame.
    Ie the second frame has a next button on it which will make the main frame go to the next page.
    Is there any way i can pass the next page name to the frame at the bottom and make the frame at the bottom change the first frame to the next page.
    I don't want to use the History forward and back buttons, i want to name the actual page it goes to.
    Is this possible?
    BW
    Edit: Basically i want to have the name of the next page stored on each main page, and the second frame never changes, just checks the main page to see where to change it to.

  2. #2
    Guest
    In your 'main page' you could have this to store the name of the next page in the sequence:
    Code:
    <FORM NAME="frmNextPage" ACTION="" METHOD="POST">
    <INPUT TYPE="hidden" NAME="next_page" VALUE="test.htm">
    </FORM>
    And then in your second (navigation) page you could have something like this:
    Code:
    <P><BUTTON onClick="parent.bottom_frame.navigate(parent.bottom_frame.frmNextPage.next_page.value)">Next</BUTTON></P>
    ...where 'bottom_frame' is the name of the frame that contains your 'main page'.

    Paul

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