npglvr
Posts: 12
|
Posted: 05/25/2006, 3:24 PM |
|
I'm looking to take the value from a drop down and use it to pre-poulate other fields based on the selection. The values and the drop down are all in the same dB table. I want to do this without reloading the screen.
I plan on doing a query and then outputing all of the info into js variables. Then when a selection is made (onChange) I'll retreive the variable that goes with that selection and write it to the correct field.
1) Is there a better way to achieve this
2) If not, then my real issue is populating all of the variables when the page loads for the first time. How do I do this? I can't put the code in the html page, because I can't use the CF in there.
Thanks in advance.
|
|
|
E43509
Posts: 283
|
Posted: 06/09/2006, 8:20 AM |
|
That is how I would do it today but available now are some AJAX methods that can do some behind the scenes functions to the server that don't give the appearnce of a posting back. Look up http://www.openrico.org/ http://www.techfeed.net/cfQuickDocs/
CFAJAX http://www.indiankey.com/cfajax/
|
|
|
|