logo
g Text Version
Beauty & Self
Books & Music
Career
Computers
Education
Family
Food & Wine
Health & Fitness
Hobbies & Crafts
Home & Garden
Money
News & Politics
Relationships
Religion & Spirituality
Sports
Travel & Culture
TV & Movies

dailyclick
Bored? Games!
Nutrition
Postcards
Take a Quiz
Rate My Photo

new
European Travel
Action Movies
Bible Basics
Houseplants
Romance Movies
Creativity
Family Travel


dailyclick
All times in EST

Clairvoyance: 08:00 PM

Full Schedule
g
g ASP Site

BellaOnline's ASP Editor

g

Auto Fill In Web Field Forms


Let's say you have a big contract page where you want a person's name to fill into many spots automatically when they type it in once. How do you do that?

First, put a form on the entire page, starting at the top and ending at the bottom. That way you can make calls to anywhere on the page to perform actions.

Next, create an input box where the user can type in their name. You can use:

Full Name:
<input type="text" name="username" size="50" MAXLENGTH="50" onChange="UserName(this.form,this.form.username.value)">

Next, the script called UserName. This is the script that is called any time a change is done to the above field. Put this right above where the form begins.

<SCRIPT LANGUAGE="JavaScript">
<!--
function UserName(form, username) {
form.userplace.value = username
}
// -->
</SCRIPT>

Finally, everywhere in the form where you want the form to fill in the name, use this:



You can do this for multiple fields - just make sure you change the name of the function and the fields in each case.
Add Auto+Fill+In+Web+Field+Forms to Twitter Add Auto+Fill+In+Web+Field+Forms to Facebook Add Auto+Fill+In+Web+Field+Forms to MySpace Add Auto+Fill+In+Web+Field+Forms to Del.icio.us Digg Auto+Fill+In+Web+Field+Forms Add Auto+Fill+In+Web+Field+Forms to Yahoo My Web Add Auto+Fill+In+Web+Field+Forms to Google Bookmarks Add Auto+Fill+In+Web+Field+Forms to Stumbleupon Add Auto+Fill+In+Web+Field+Forms to Reddit




RSS | Related Articles | Editor's Picks Articles | Top Ten Articles | Previous Features | Site Map


For FREE email updates, subscribe to the ASP Newsletter


Past Issues


print
Printer Friendly
bookmark
Bookmark
tell friend
Tell a Friend
forum
Forum
email
Email Editor


Content copyright © 2014 by Lisa Shea. All rights reserved.
This content was written by Lisa Shea. If you wish to use this content in any manner, you need written permission. Contact Lisa Shea for details.

g


g features
Archives | Site Map

forum
Forum
email
Contact

Past Issues
memberscenter


vote
Poetry
Daily
Weekly
Monthly
Less than Monthly



BellaOnline on Facebook
g


| About BellaOnline | Privacy Policy | Advertising | Become an Editor |
Website copyright © 2014 Minerva WebWorks LLC. All rights reserved.


BellaOnline Editor