Auto refresh particular div using jquery or AJAX - 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: Auto refresh particular div using jquery or AJAX (/showthread.php?tid=53507) |
Auto refresh particular div using jquery or AJAX - El Forum - 07-26-2012 [eluser]Unknown[/eluser] Hi everyone, i'm a beginner in using the codeigniter and i have a question on how to refresh particular div using jquery or ajax. i've tried to search and try to fix it but it is not working. this is my view page: home_page.php Code: function test(){ this is the div that needs to be auto updated Code: <div id="jobs" class="middle_row"> this is the jobs_page.php Code: <table border="1" width="100%" bgcolor="transparent"> any help regarding this is highly appreciated. Thank you before. Auto refresh particular div using jquery or AJAX - El Forum - 07-27-2012 [eluser]CroNiX[/eluser] Javascript runs in the clients browser. It doesn't know php. Use ajax to periodically send a request to the server via POST. In the controller/method that the ajax request is calling, return the desired view. Then, in the success event of the ajax call, show the returned HTML in your div. |