471,091 Members | 1,553 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,091 software developers and data experts.

coldfusion query to javascript form variables

I've got a simple coldfusion query output (title, id and disclaimer)
that I use to dynamically populate a select box with the title using
the id as the value. What I need is to use javascript to populate a
second text field with the disclaimer when any of the selections are
changed ( so a page reload is not needed).

Thanks for help!

Jul 23 '05 #1
2 2921
In article <11**********************@z14g2000cwz.googlegroups .com>,
en****@gmail.com enlightened us with...
I've got a simple coldfusion query output (title, id and disclaimer)
that I use to dynamically populate a select box with the title using
the id as the value. What I need is to use javascript to populate a
second text field with the disclaimer when any of the selections are
changed ( so a page reload is not needed).

Thanks for help!


CF runs on the server. Javascript runs on the client. The point being that it
doesn't matter how the original select box is populated - it's all finished
by the time javascript sees it. You do this the same as you would if the
values were hard-coded.

I have a small example here.
http://www.ipwebdesign.net/kaelisSpa...icSelects.html

--
--
~kaeli~
Quantum Express: When you absolutely, positively, don't
know where it's going or when it needs to be there.
http://www.ipwebdesign.net/wildAtHeart
http://www.ipwebdesign.net/kaelisSpace

Jul 23 '05 #2
Understood. I have no problem creating dynamic pulldowns from other
pulldowns using javascript when based on static arrays. Populating both
fields based on ever changing information from the coldfusion query and
allowing the user access to this information when changing a single
pulldown is what I really need assitance with. The info in the text
block to be populated/changed whenever the select box changes when the
results of the coldfusion query change. I expect the coldfusion results
to become "static" to javascript whenever the page is refreshed but I
need to use javascript to use those effectively without refreshing.

Jul 23 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by CCP | last post: by
2 posts views Thread by Wee Bubba | last post: by
3 posts views Thread by misra.manisha | last post: by
2 posts views Thread by justplain.kzn | last post: by
2 posts views Thread by The Diabolical | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.