mirror of
1
0
Fork 0
ultimate-vim/sources_non_forked/snipmate-snippets/javascript-jquery/ajax.snippet

19 lines
339 B
Plaintext

$.ajax({
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}
},
});