I'm doing the Joomla 3 component tutorial up to where it is complete (trying to pick it up from 2.5) but I'm getting the following error:
Code: Select all
Uncaught TypeError: Cannot read property 'setHandler' of null
Code: Select all
window.addEvent('domready', function() {
document.formvalidator.setHandler('greeting',
function (value) {
regex=/^[^0-9]+$/;
return regex.test(value);
});
});