Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Javascript > coldfusion query to javascript form variables

Reply
Thread Tools

coldfusion query to javascript form variables

 
 
entact@gmail.com
Guest
Posts: n/a
 
      12-16-2004
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!

 
Reply With Quote
 
 
 
 
kaeli
Guest
Posts: n/a
 
      12-16-2004
In article < .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

 
Reply With Quote
 
 
 
 
entact@gmail.com
Guest
Posts: n/a
 
      12-16-2004
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.

 
Reply With Quote
 
 
 
Reply

Thread Tools

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
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Put variables into member variables or function variables? tjumail@gmail.com C++ 9 03-23-2008 04:03 PM
Passing textbox value on coldfusion form to mailto tag jnag Javascript 7 01-03-2008 03:03 PM
How to change font size for web pages using Javascript & Coldfusion jnag Javascript 3 05-31-2007 08:44 PM
Coldfusion & Javascript jnag Javascript 1 03-22-2007 02:19 PM
Passing variables from ColdFusion to ASP Onnuri ASP General 1 12-31-2004 06:38 AM



Advertisments