How to reload the div using 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: How to reload the div using ajax (/showthread.php?tid=41504) |
How to reload the div using ajax - El Forum - 05-10-2011 [eluser]JasmineFlower[/eluser] hi, I need to reload the below div within the time interval ,how to do this in ajax the below code displays the folder files in html page. Code: <div id="ajaxusing"> How to reload the div using ajax - El Forum - 05-10-2011 [eluser]eoinmcg[/eluser] firstly, refactor your code and embrace MVC. i'd move the building of the file list to a model. in your controller you'll then get the files from the model and send it to a view. Code: //in your controller now that things are not such a mess, a splash of jquery would be the easiest way to update Code: update(); |