Created
January 29, 2011 20:25
-
-
Save jeffreyiacono/802160 to your computer and use it in GitHub Desktop.
javascript for widget deletion
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$.ajax({ | |
url: this.href, | |
type: 'POST', | |
dataType: 'script', | |
data: {_method: 'delete'}, | |
beforeSend: function() { console.log("in before send ...") }, | |
complete: function() { console.log("in complete ...") } | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment