Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

real time update using ajax php

    <script type="text/javascript" src="http://code.jquery.com/jquery-1.10.1.min.js"></script>
    <script>
            $(document).ready(function() {
                setInterval(function() {  // set Interval function to carry out same operation in the time specified
                    $('#main').load('seminar-overview.php #main > *'); // Reloads 'seminar-overview.php' table every 6 seconds as <div> tag is specified and closed after table
            }, 6000);
                });
    </script>
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #real #time #update #ajax #php
ADD COMMENT
Topic
Name
5+6 =