Topic Areas
Free Scripts
Information
Resources
Tutorials
Information
Search
Help Forums
Contact
Link to Us
Submit Script
Privacy Policy
More Resources
Free Stuff
Web Resources
Other Links
PageResource.com: Learn HTML
Just Free Stuff
JavaScript City
Large Form Handling

Script Introduction

I have seen various threads within forums asking how to pass values from one page to the other in order to facilitate the splitting of a large form. It is not neccessary to do this unless you really wish to as a large form can be accomodated on a single page and still have the feel of a small form. The script below is one metghod of achieving this. It is written and tested using IE5.5 & N6+ It will not work for N4+ but the script/markup/css could be adapted I would imagine. -diades.

Cut and Paste Code: HEAD Section
This code should be placed between the <head> and </head> tags.

Cut and Paste Code: BODY Section
This code should be placed between the <body> and </body> tags.

Installation Instructions

  1. Paste the HEAD Section code from above between the <head> and </head> tags on your page.
  2. Paste the BODY Section code from above between the <body> and </body> tags on your page.

  3. To add another "tab", find:
    <div id="tabs">
    and add:
    <input id="tab2" type="button" value="Page 3" name="tab2" onclick="showPage(2)">
    with the next numbers on. Then find:
    <div id="page2" class="pge" style="z-index:0;">
    and, again, edit it with the next numbers on.

    Place any form controls into any "page" div as your layout requires, add functionality to validate() if required. Position the tabbed form on the page and format.

  4. Check the Format Window to be sure you do not have one single line of code, or too many line breaks in the code.

Example

A sample of the script can be seen via the link below.

Example

JavaScript Book
JavaScript: A Beginner's Guide
by John Pollock
What's New
Simple Searchbox script added.
More...
Web Xpertz
Find more JavaScript tools and resources at WebXpertz City! Click one of the links above to browse the various attractions within the city.