Skip to content

Instantly share code, notes, and snippets.

@kaievns
Created September 21, 2010 09:30
Show Gist options
  • Save kaievns/589453 to your computer and use it in GitHub Desktop.
Save kaievns/589453 to your computer and use it in GitHub Desktop.
"#title".onClick(function() {
this.highlight();
});
"#boom".onClick(function(event) {
event.stop();
$('title').fade();
});
"#time".onClick(function(event) {
event.stop();
$('msg').load("/time");
});
"#server".onClick(function(event) {
event.stop();
$('msg').load("/response");
});
"#reverse".onSubmit(function(event) {
event.stop();
this.send({
onSuccess: function() {
$('msg').update(this.responseText);
}
});
});
Xhr.Options.spinner = 'spinner';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment