Skip to content

Instantly share code, notes, and snippets.

@sivy
Created April 25, 2011 02:31
Show Gist options
  • Select an option

  • Save sivy/940081 to your computer and use it in GitHub Desktop.

Select an option

Save sivy/940081 to your computer and use it in GitHub Desktop.
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.5/jquery.min.js"></script>
<script type="text/javascript">
$(function(){
var int_id = setInterval(500, function(){
$.ajax({
cache:false,
dataType:'html',
url:'/check_deploy?resp=7fa19233-cd39-4aa8-87c9-8f2b2520bf75',
success:function(data){
if (data!='NO') {
$('#deploy-result').html(data);
}
clearInterval(int_id);
},
failure:function(data) {
console.log(data);
clearinterval(int_id);
}
});
});
});
</script>
<div id="deploy-result"></div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment