![]() |
Ajax with a custom template - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Libraries & Helpers (https://forum.codeigniter.com/forumdisplay.php?fid=22) +--- Thread: Ajax with a custom template (/showthread.php?tid=44095) |
Ajax with a custom template - El Forum - 08-03-2011 [eluser]waynhall[/eluser] I just wanted to say how much I appreciate the is_ajax_request() method. It makes progressive enhancement a cakewalk with ajax calls: Code: if($this->input->is_ajax_request()) { Code: <div id="container"> With jquery I can clear the content and replace with the response from the server: Code: /* Signup form */ |