OK, you're going about this all wrong... you can't execute a query in
javascript.  Your data needs to be processed by the server.

Use the two_selects_related or three_selects_related custom tag.

If these aren't any good for you then I suggest you look into the gif
data pipes. 

http://www.depressedpress.com/DepressedPress/Content/ColdFusion/Essays/G
IFAsPipe/


- Matt Small


-----Original Message-----
From: Bruce, Rodney S HQISEC/SIGNAL
[mailto:[EMAIL PROTECTED]] 
Sent: Thursday, May 16, 2002 2:51 PM
To: CF-Talk
Subject: Running a query in javascript

Hello all

I am trying to run a query inside of a javascript function.
Unless there is another way of doing this.


Without reloading/submitting the form I need to run a query based on
user
selected options
Pass these options to the query and then place the results in a select
box.

Something like:
user is looking for a car,  so the user selects blue, yr 2000, 4x4.
pass options to query, then list all avaible cars in a select box for
the
use to choose from.
Then the form is submitted.

Very easy if form is submited with options ,  the cars are listed on
next
page,  but I would like not to have to submit the form more than once.


Was hoping someone could help me out.
Thanks for any information
Rodney

______________________________________________________________________
Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to