Results 1 to 6 of 6

Thread: Multi-Part Content Script | Top Of Page Question

  1. #1
    Join Date
    Apr 2006
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Multi-Part Content Script | Top Of Page Question

    Hello,

    Thank you for this great site! I am using the Free Multi-Part Content script on a page where information is gathered via a very long form. I have set this script up and it works very nice. Because I am using this with a form, I've moved the 'next' & 'back' buttons to the bottom. This has created an issue where after one page is filled out and 'next' is clicked it takes them to the bottom of page two. I would like it to go to the top of page two.

    Does anyone know how to achieve this? I have added the url to the page of the script that I am talking about below.

    Thanks in advance for any help!


    http://www.dynamicdrive.com/dynamici...artcontent.htm

  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

    Quote Originally Posted by koobos
    Because I am using this with a form, I've moved the 'next' & 'back' buttons to the bottom.
    The next and back buttons were already on the bottom.
    - John
    ________________________

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

  3. #3
    Join Date
    Apr 2006
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Oh, OK. I had forgotton. Do you know how to make it scroll to the top?

  4. #4
    Join Date
    Apr 2006
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Sorry for the extra post.......


    Like #top

  5. #5
    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

    Well, I am still not clear what you are after, if you want the forward control to, as well as move the contents forward, also scroll the page, you can use the window.scrollTo(x, y) method:

    Code:
    <div id="formnavigation" style="width:200px; display:none">
    <a id="backbutton" href="javascript:cycleback()" style="float:left">Back</a>
    <a id="forwardbutton" href="javascript:cycleforward()" onclick="window.scrollTo(0, 0);return true;" style="float:right">Forward</a>
    </div><br>
    Or, with this type of setup you could also do:

    Code:
    <div id="formnavigation" style="width:200px; display:none">
    <a id="backbutton" href="javascript:cycleback()" style="float:left">Back</a>
    <a id="forwardbutton" href="#" onclick="cycleforward();return true;" style="float:right">Forward</a>
    </div><br>
    - John
    ________________________

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

  6. #6
    Join Date
    Apr 2006
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    John,

    Thank you so much! You're second option is just what I was looking for.

    Have a great weekend!

    Scott

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
  •