Helping ordinary people create extraordinary websites!
HOME TUTORIALS SCRIPTS WEB HOSTING BLOG FORUM
Get Our Newsletter
Email:

Pre-Fill Forms From Last Use

By Will Bontrager
2005-04-18


A Limitation

When deciding which form fields to pre-fill in, take into consideration that cookies larger than 4k might not be accepted by the visitor's browser. (To see how much that is, create a plain text file and add to or delete from it until the file size is 4k.)

(The plain text version of this article is a bit over 6k in size.)

4k is more than you're likely to need if you're keeping track of only a few items of information, such as name and email -- even if you have dozens of forms and each form has different field names for the same information.

If you're keeping track of many form fields, especially if some of those fields are text areas that invite lots of information, keep the 4k limit in mind.

Additional technical information about cookies is at http://www.netscape.com/newsref/std/cookie_spec.html

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


 | Bookmark
Related Tutorials:
» JavaScript Debugging Techniques with Firebug
» Striped Tables Using JavaScript
» Opening PDFs in a New Window with JavaScript
» Essential Javascript -- A Javascript Tutorial
» Submit Forms Conditionally using JavaScript
» How to Setup a Randomising Function