How to use AJAX to update your charts

01/04/2014 20:26 PlayCreedSRO#1
Hello guys i need help

i need this system autoload data like = WEBSITE: error-soft . net/servercapacity/prvsro ( REMOVE SPACE ON .net


so i find this guide but dont understand much.. [Only registered and activated users can see links. Click Here To Register...]


Help me to make.

Players State % Status
70 / 1000 Easy 7% Online

May be the same system Autoload?? Thanks u
01/08/2014 09:10 johhnyxD#2
just look at the sourcecode...
Code:
<script src="../jquery.js"></script>
<script>
 $(document).ready(function() {
 	 $("#stats").load("../../.././servercapacity/private/prvsro/cached.php");
   var refreshId = setInterval(function() {
      $("#stats").load("../../.././servercapacity/private/prvsro/cached.php");
   }, 8000);
   $.ajaxSetup({ cache: false });
});
</script>
for understanding: this function loads the page /servercapacity/private/prvsro/cached.php every 8000ms and replaces the content of #stats with the loaded content
btw this is the wrong section, use the web-dev forum next time ([Only registered and activated users can see links. Click Here To Register...])