0

I have a report page which dynamically generate the record and saved in the database. From database i need to show the dynamically updated records in the page without reload or load the contents using setInterval time function.

Murugesh
  • 820
  • 2
  • 12
  • 24
  • Once the new record updated for each second the page getting reloaded, i doknow need to reload full page. i need the only content to be updated dynamically without reload... – Murugesh Apr 27 '10 at 13:11
  • http://docs.jquery.com/Tutorials:Getting_Started_with_jQuery – Felix Kling Apr 27 '10 at 13:18

2 Answers2

0

this code http://pastie.org/937213 loads ajax.php to #live div every 3 seconds

osm
  • 4,186
  • 3
  • 23
  • 24
0

see my question Here

and use setInterval function with it

var refreshId = setInterval(function() 
{
    $("#yourContainer").load('yourPage.php');
}, 5000);

offcourse Jquery is prereq for this... so download jQuery from here and include it in your page

<script href="yourlink to the file"></script>

Community
  • 1
  • 1
Moon
  • 19,518
  • 56
  • 138
  • 200