Skip to content

Instantly share code, notes, and snippets.

@westmark
Created May 24, 2012 17:37
Show Gist options
  • Save westmark/2782971 to your computer and use it in GitHub Desktop.
Save westmark/2782971 to your computer and use it in GitHub Desktop.
new Ajax.Request(link.href, {
method:'POST',
onSuccess:function (transport) {
if (row !== null) {
row.highlight({duration:0.5});
}
window.location.reload();
},
onFailure:function (transport) {
alert("Ett fel intr\u00e4ffade. (HTTP-svarskod " + transport.status + ")");
window.location.reload();
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment