21 lines
		
	
	
		
			730 B
		
	
	
	
		
			XML
		
	
	
	
	
	
			
		
		
	
	
			21 lines
		
	
	
		
			730 B
		
	
	
	
		
			XML
		
	
	
	
	
	
| <snippet>
 | |
| 	<content><![CDATA[\$.ajax({
 | |
|   url: '${1:/path/to/file}',
 | |
| ${2/(.+)/(?1:  type\: ':)/}${2:POST}${2/(.+)/(?1:',
 | |
| :)/}${3/(.+)/(?1:  dataType\: ':)/}${3:xml/html/script/json/jsonp}${3/(.+)/(?1:',
 | |
| :)/}${4/(.+)/(?1:  data\: {:)/}${4:param1: 'value1'}${4/(.+)/(?1:},
 | |
| :)/}${5/(.+)/(?1:  complete\: function\(xhr, textStatus\) {
 | |
|     :)/}${5://called when complete}${5/(.+)/(?1:
 | |
|   },
 | |
| :)/}${6/(.+)/(?1:  success\: function\(data, textStatus, xhr\) {
 | |
|     :)/}${6://called when successful}${6/(.+)/(?1:
 | |
|   },
 | |
| :)/}${7/(.+)/(?1:  error\: function\(xhr, textStatus, errorThrown\) {
 | |
|     :)/}${7://called when there is an error}
 | |
| ${7/(.+)/(?1:  }
 | |
| :)/}});
 | |
| $0]]></content>
 | |
| 	<tabTrigger>.ajax</tabTrigger>
 | |
| 	<scope>source.js</scope>
 | |
| </snippet>
 |