Skip to content

Instantly share code, notes, and snippets.

@apipkin
Created April 5, 2010 15:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save apipkin/356434 to your computer and use it in GitHub Desktop.
Save apipkin/356434 to your computer and use it in GitHub Desktop.
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<script src="http://yui.yahooapis.com/3.1.0/build/yui/yui-min.js"></script>
<script>
YUI().use('io',function(Y){
var ioConfig = {
on : {
success : function(id,o,args) { Y.log(o.responseText); },
error : function(args) {Y.log(args);}
},
url : 'io.php'
};
var myIo = Y.io(ioConfig.url, ioConfig);
Y.later(1500, this, function(){myIo.abort();});
});
</script>
</head>
<body>
</body>
</html>
<?php sleep(3);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment