Go Back   CodingForums.com > :: Client side development > JavaScript programming

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 05-01-2007, 01:42 PM   PM User | #1
tcadieux
Regular Coder

 
Join Date: Nov 2002
Posts: 122
Thanks: 1
Thanked 0 Times in 0 Posts
tcadieux is an unknown quantity at this point
Looking for a script to..

I want to load an array when the page loads, then if a user starts to type a number into a textbox, the system would autofill with information from the array until the user picks the correct info, then the corresponding info would appear in a second textbox?
tcadieux is offline   Reply With Quote
Old 05-01-2007, 03:14 PM   PM User | #2
venkatmallu.net
New Coder

 
Join Date: Apr 2007
Posts: 24
Thanks: 0
Thanked 0 Times in 0 Posts
venkatmallu.net is an unknown quantity at this point
I want to load an array when the page loads, then if a user starts to type a number into a textbox, the system would autofill with information from the array until the user picks the correct info, then the corresponding info would appear in a second textbox?

1) inorder to load an array when the page loads...
call a javascript function for body onload event like this
<body onload=loadArr()>

2) in the loadArr() initialize the array with data as code in below link
its better to use an xml file. and the tag values are assigned to the array

3)in order to compare the values call another function for textbox "onkeypress" event as comp().

4) in the comp() compare the characters entered in the textbox with the array elements.... and which matches this string show in 2nd textbox
venkatmallu.net is offline   Reply With Quote
Old 05-01-2007, 03:16 PM   PM User | #3
venkatmallu.net
New Coder

 
Join Date: Apr 2007
Posts: 24
Thanks: 0
Thanked 0 Times in 0 Posts
venkatmallu.net is an unknown quantity at this point
this is the link
http://codingforums.com/showthread.php?t=113049
venkatmallu.net is offline   Reply With Quote
Old 05-01-2007, 06:40 PM   PM User | #4
tcadieux
Regular Coder

 
Join Date: Nov 2002
Posts: 122
Thanks: 1
Thanked 0 Times in 0 Posts
tcadieux is an unknown quantity at this point
Is there a way to make this code work with more than 1 dropdown ?
tcadieux is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 02:38 AM.


Advertisement
Log in to turn off these ads.