![]() |
can't load controller with load function on jquery - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: can't load controller with load function on jquery (/showthread.php?tid=24640) |
can't load controller with load function on jquery - El Forum - 11-15-2009 [eluser]ardlian.net[/eluser] i use this code of my controller main with method load Code: function load(){ and i load this controller with jquery load function Code: function load(url,div){ and this my code for the view Code: <li> and the result is not foun 404 the question is.. wy the controller can't load direcly with load function of jquery function? couse if i load the view direcly, the page can be loaded with this code Code: <li><a href="[removed]void(0)" title="Home" id="load">Load</a></li> but i think this not MVC based... ned you advice brother... thx can't load controller with load function on jquery - El Forum - 11-15-2009 [eluser]ardlian.net[/eluser] not yet... ![]() can't load controller with load function on jquery - El Forum - 11-16-2009 [eluser]mjsilva[/eluser] Didn't quite get it you, but I belive you are trying to load a view with ajax using jquery. This is what I would do: File main_view.php Code: <html> File ajax_example_controler.php Code: <?php File ajax_content_view.php Code: <p>This is going to be loaded using jquery ajax magic<p> Not tested, errors are expected. Cheers |