1
0
Fork 0
mirror of synced 2024-11-17 14:35:34 -05:00
ultimate-vim/bundle/snipmate-snippets/javascript-jquery/ajaxsetup.snippet
2014-05-09 21:28:39 +02:00

18 lines
344 B
Text

$.ajaxSetup({
url: "${1:mydomain.com/url}",
type: "${2:POST}",
dataType: "${3:xml/html/script/json}",
data: $.param( $("${4:Element or Expression}") ),
complete: function() {
${5://called when complete}
},
success: function() {
${6://called when successful}
},
error: function() {
${7://called when there is an error}
},
});