Need checkbox onclick somehow to run SQL query
Hello all,
Now, I know directly I cannot do this with a javascript function. What I need to do is with a checkbox onclick
set a hidden field to the type of the data that is selected by the checkbox. So, if I select the name of a person,
the onclick method needs to let the hidden field know we have a "person" entity type. I need this type because
when I do my true submit, that form field when read will denote what next page I need to bring up in a new tab.
The question I have is ok, I can attempt to do this a couple of ways, following:
1) Come up with an AJAX call that will run a function on the server. What I do worry about is
submitting the page and ending up losing boxes that were checked. I also don't want a long
form submittal after every click.
OR
2) Forget the onclick method, create a blank .cfm form, then use that form to run the query for the
types of data, and then call the page to be displayed? Again, I'm new, so I don't know if this could
be weird in how the page comes up for display?
Thanks in advance!!!!!
