Pre-Fill Forms From Last Use
By Will Bontrager2005-04-18
The Source Code
http://willmaster.com/a/22t/pl.pl?demo224 has a link where you can download the JavaScript code and several example forms.
Three steps are required to implement this automatic form field pre-fill method. On each web page with a form:
1. Copy the JavaScript code from the HEAD area of the downloaded demonstration page and paste it into the HEAD are of your web page. The JavaScript has three places to be customized, marked with instructions.
2. Your form's ACTION tag needs to specify "name" and "onSubmit" attributes.
3. Three lines of JavaScript code need to be inserted below your form. Again, the demonstration page has examples.
Specifics of each of those three steps are outlined below.
Tutorial Pages:
» Pre-Fill Forms From Last Use
» Why?
» The Source Code
» The JavaScript code of the HEAD Area
» The Form's ACTION Tag
» The JavaScript Below the Form
» A Limitation
» Conclusion
Copyright 2004 Bontrager Connection, LLC
