Javascript to check data against data in a table

ataylor14 15 Aug, 2014
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.
Max_admin 23 Aug, 2014
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 ?

ChronoForms developer...
Did you try ChronoMyAdmin for managing your Joomla database tables ?
This topic is locked and no more replies can be posted.