It just stopped.

It just stopped.

Hi,

At first excuse my for my - sometimes - crappy english.

I got a problem. I just started using jQuery, and it worked fine, but from the one to the other moment it stopped to give an alert of refresh the page.

Here is some code:
  1. <script src="http://code.jquery.com/jquery-latest.js"></script>
  2. <script>
  3.  $(document).ready(function() {
  4.    var refreshId = setInterval(function() {
  5.     $.get("values.php", { v: "host_refresh" }, function(data){
  6.     if(data == "refresh"){
  7.     location.reload();
  8.     }
  9.     });
  10.    }, 5000);
  11. });

  12.  $(document).ready(function() {
  13.    var refreshId = setInterval(function() {
  14.     $.get("values.php", { v: "host_screenalert" }, function(data){
  15.     if(data == "alert"){
  16.     alert("SCREEN =D");
  17.     }
  18.     });
  19.    }, 10000);
  20. });
  21. </script>


I've used firebug, and the answer i get from values.php?v=x is the same as what is in the if(data == "x").
So: The get is good. He just isn't alerting or refreshing..

If someone can help me,


Thanks in advance,
Robbin