Wrox Home  
Search P2P Archive for: Go

  Return to Index  

asp_databases thread: Populate a field forma populated field


Message #1 by oneil_brown@h... on Thu, 17 Jan 2002 16:15:40
IS there a way to have a field on a web page populate form another field 

on the same web page.  Menaing the selection field can have 20 items, I 

then choose three of those items, they are auotmatically posted to the 

second field then a query is run based on the second field.  



thanks



O'Neil
Message #2 by "rachel" <rgreen@e...> on Tue, 22 Jan 2002 17:01:52
Yes, I think what you're trying to do can be accomplished using client-

side scripting (javascript, vbscript, etc). Let's say you have an input 

named A and you want to use it to populate input B. You can write event-

handlers to detect when a change has been made to A. So in the tag for A 

you could say onChange="onChangeA()" and then write the following function-



function onChangeA(){

  B.value = A.value;

}







> IS there a way to have a field on a web page populate form another field 

> on the same web page.  Menaing the selection field can have 20 items, I 

> then choose three of those items, they are auotmatically posted to the 

> second field then a query is run based on the second field.  

> 

> thanks

> 

> O'Neil

  Return to Index