hello.
I would like to learn how to add a js code that checks an input (say in a text box) against data that I have in a table. The js will connect to the db and run a select query using the value of teh textbox in the criteria of the select.
I have managed to use PHP to so this check but of course that requires the form to be submitted so that I can use the value of the textbox in teh query.
I would like to run the check on the fly - in the form before submitting.
I would appreciate very much any help from the forum.
Amelia
I would like to learn how to add a js code that checks an input (say in a text box) against data that I have in a table. The js will connect to the db and run a select query using the value of teh textbox in the criteria of the select.
I have managed to use PHP to so this check but of course that requires the form to be submitted so that I can use the value of the textbox in teh query.
I would like to run the check on the fly - in the form before submitting.
I would appreciate very much any help from the forum.
Amelia
Hi Amelia,
You will need to use the "Events" section under the select settings, or use a button instead to call the JavaScript, use the "function" method, and write a function to call your another form event (a new event) using AJAX.
What do you expect to get after the check is done ?
Regards,
Max
You will need to use the "Events" section under the select settings, or use a button instead to call the JavaScript, use the "function" method, and write a function to call your another form event (a new event) using AJAX.
What do you expect to get after the check is done ?
Regards,
Max
This topic is locked and no more replies can be posted.