I am currently trying to add an AJAX-based validation process to only a specific field on the CS-Cart member registration form.
Although I have been looking at the manual, I must admit that I do not fully understand it.
Could someone please provide a simple AJAX sample?
I would prefer that this validation is executed at the moment the submit button is clicked.
And also, since I want to convert it into an addon,
I have placed the JavaScript file in “js/addons/my_addon_name/script.js”
but I’m not sure about appropriate location for the PHP program that returns results…
Probably if I put it in document root, it would be easy, but it means that my addon doesn’t include this php program.