Welcome Guest, Not a member yet? Register   Sign In
Mootools ajax
#2

[eluser]dmitrybelyakov[/eluser]
That is correct. You can do it in your controller - just instruct Mootols to send the request to controller/method and then it will do all the serverside-work. This method can then send a response that get back to mootools.

It may be usefull to find out if a methos was called with ajax or if it was a regular browser call. You may use this code:
Code:
//If request was for module was mady with AJAX
        //don't call View files later on
        $ajax=$this->input->server('HTTP_X_REQUESTED_WITH');
        if($ajax=='XMLHttpRequest') $ajax=true;


Messages In This Thread
Mootools ajax - by El Forum - 02-02-2009, 08:45 AM
Mootools ajax - by El Forum - 02-02-2009, 09:26 AM
Mootools ajax - by El Forum - 02-02-2009, 09:41 AM
Mootools ajax - by El Forum - 02-02-2009, 01:48 PM
Mootools ajax - by El Forum - 02-02-2009, 07:24 PM



Theme © iAndrew 2016 - Forum software by © MyBB