> From: John Ho
>
> Hi all
> How do I write a _javascript_ with a query base on value
> the users select from drop down select list.
> For example user select IP = '123.124.135.225' and I
> do a query of this IP address and display all the
> fields  to the same form which user select the ip. I
> code is something like this

What you have to remember is something very important

ColdFusion = Server-side
_javascript_ = Client-side

You can't mix them up, so your CFQUERY would run when creating the page,
but not when your JS fires the function

There are 2 ways of doing this:

1) Store all of the query information in the page and let _javascript_ do
the filtering

2) Submit the data back to the server and let CF get the shortened
version of the query and re-present the form
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

Reply via email to