2011-08-09, 11:04 PM
Hey,
I've made a plugin for my forum, which requires users to go into my Minecraft/game-server and get a code and type this in at registration
(Link: http://www.ultimateminecraft.net/forum). It works rather flawlessly but I can't seem to understand how to add an AJAX-check wether it is correct or not. If user inputs incorrect a $data->set_error will be shown, hooked to datahandler_user_validate, but I want a realtime-check using AJAX. From what I understand the correct hook would be xmlhttp.
Now how do I check if the input is correct against a function and give a success/fail based on the result?
Thanks in advance for help
I've made a plugin for my forum, which requires users to go into my Minecraft/game-server and get a code and type this in at registration
(Link: http://www.ultimateminecraft.net/forum). It works rather flawlessly but I can't seem to understand how to add an AJAX-check wether it is correct or not. If user inputs incorrect a $data->set_error will be shown, hooked to datahandler_user_validate, but I want a realtime-check using AJAX. From what I understand the correct hook would be xmlhttp.
Now how do I check if the input is correct against a function and give a success/fail based on the result?
Thanks in advance for help