Skip to content

Instantly share code, notes, and snippets.

@wilornel
Created April 28, 2012 23:33
Show Gist options
  • Select an option

  • Save wilornel/2522641 to your computer and use it in GitHub Desktop.

Select an option

Save wilornel/2522641 to your computer and use it in GitHub Desktop.
var dataString = 'name='+ name + '&spectator=' + spectator;
$.ajax({
type: "POST",
url: "/php/login.php",
data: dataString,
success: function() {
$('#login_form').html("");
$('#controls2').html("")
.fadeIn(1500, function() {
var refreshId = setInterval(function() {
$.ajax({
type: "POST",
url: "/php/display_queue.php",
data: dataString,
success: function(){echo 'hi';});
,
5000);
});
}
}
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment