[eluser]manilodisan[/eluser]
[quote author="Aken" date="1226036586"]CI's validation uses POST variables to check things. AJAX typically sends query strings, or GET variables to a URL, which in turn responds with the yes or no validation. You'll have to use some custom validation methods, whether they're in the AJAX or your own controller/model.[/quote]
So wrong!
@Haemo, you have to register the xajax function in your controller first. We do somwthing like this in Webber on the constructor (or where you need it...) function of the controller:
Code:
$this->xajax->registerFunction ( array( 'function_name', &$this, 'function_name' ) );
$this->xajax->processRequests ();
Once the function registered and the requests sent out you must go out to the view and print the javascript that xajax uses to connect:
Code:
$this->xajax->printJavascript ( base_url () . '/path_to_xajax_js_folder/' )