> 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.
You can't really do this with just JavaScript and CF, within a single page, without using some "tricks". You'll need to send data back to the server, and then receive data back from the server. You can do this with a hidden frame, or a "GIF pipe" as described at http://www.depressedpress.com/DepressedPress/Content/ColdFusion/Essays/GifAs Pipe/Index.cfm. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ voice: (202) 797-5496 fax: (202) 797-5444 ______________________________________________________________________ Get the mailserver that powers this list at http://www.coolfusion.com 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

