Greetings
I am trying out the User Ajax example http://fabrikar.com/forums/index.php?wiki/user-ajax/
I copied the php example to components/com_fabrik/user_ajax.php
user_ajax.php already contains the userExists function, so I was expecting that if I edit the Java script for a field in a form, and paste the following (from the example), setting an onchange trigger, then it should raise a message if i type in "admin"
But nothing happens. Ajax validation is ON for the form, which has id=2. The table is lll_client and field name=name
I am trying out the User Ajax example http://fabrikar.com/forums/index.php?wiki/user-ajax/
I copied the php example to components/com_fabrik/user_ajax.php
user_ajax.php already contains the userExists function, so I was expecting that if I edit the Java script for a field in a form, and paste the following (from the example), setting an onchange trigger, then it should raise a message if i type in "admin"
var thisElement = Fabrik.getBlock('form_2').elements.get('lll_client___name');
var myUsername = thisElement.get('value');
userExists(myUsername,thisElement);
var myUsername = thisElement.get('value');
userExists(myUsername,thisElement);
But nothing happens. Ajax validation is ON for the form, which has id=2. The table is lll_client and field name=name