Skip to content

Instantly share code, notes, and snippets.

@seivan
Created March 9, 2009 22:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save seivan/76529 to your computer and use it in GitHub Desktop.
Save seivan/76529 to your computer and use it in GitHub Desktop.
$(function() {
$("a.rjs").click( function() {
alert("TEST");
$.ajax({
url: this.href+'.js',
dataType: "script",
beforeSend: function(xhr) {xhr.setRequestHeader("Accept", "text/javascript");}
});
return false;
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment