jquery.$_ajaxSetup 484 B

1234567891011121314
  1. # This was cloned from a TextMate bundle for yasnippet.
  2. #name : $_ajaxSetup
  3. #key : $.ajaxSetup
  4. #condition : (when (boundp 'jquery-project) jquery-project)
  5. # --
  6. \$.ajaxSetup({
  7. url: "${1:mydomain.com/url}",
  8. type: "${2:POST}",
  9. ${3:dataType: "${4:xml/html/script/json}",
  10. }${5:data: "${6:Element or Expression}",
  11. }${7:complete: function(XMLHttpRequest, textStatus) {$8},
  12. }${9:error: function(XMLHttpRequest, textStatus, errorThrown) {$10},
  13. }${11:success: function(data) {$12},}$0
  14. });