[thelist] User form input question

Chris Heilmann lists at onlinetools.org
Mon Apr 4 08:33:39 CDT 2005


> Ok, this is another user request that I am not sure how to pull off:
>
> There are about 200 agencies. The agency table contains an ID, name and
> code.
>
> During data entry the clerks know the agency code before the name.
>
> The would like to be able to enter the code and have the next field auto
> populate with name.
>
> I have a record set with the Agency info that it retrieved when the page
> first  loads.
>
> I am using asp, javascript, html on IIS with sql 2000 backend.

Set up the agency list as an array and populate the name field accordingly:

http://www.onlinetools.org/tests/agencies.html

Test codes:
	agencies[1]='Agency1';
	agencies[23]='Agency2';
	agencies[122]='Agency3';
	agencies[33]='Agency4';
-- 
Chris Heilmann
Blog: http://www.wait-till-i.com
Writing: http://icant.co.uk/
Binaries: http://www.onlinetools.org/



More information about the thelist mailing list