Advertisement
Guest User

Untitled

a guest
May 4th, 2016
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. function update(port, account, pg) {
  2. $.get( "http://cloud.mytt.co.uk/backend/include/getinfo.php", { f: port + "-" + account + "-" + pg }).done(function( data ) {
  3. var currentData = $('#autoUpdate' + port).html();
  4. if(currentData != data) {
  5. $('#autoUpdate' + port).html(data);
  6. }
  7. setTimeout(update(port, account, pg), 1000);
  8. });
  9. }
  10.  
  11. <script>update("'.$port.'","'.$account.'","'.$pagenum.'");</script>
  12.  
  13. This translates to update("28500","Admin","1"); when the page is loaded.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement