Changeset 9355
- Timestamp:
- 06/28/07 07:55:52 (19 months ago)
- Files:
-
- 1 modified
-
dojox/trunk/wire/ml/Service.js (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
dojox/trunk/wire/ml/Service.js
r9252 r9355 30 30 serviceType: "", 31 31 handlerClass: "", 32 preventCache: true, 32 33 33 34 postCreate: function(){ … … 137 138 var args = { 138 139 url: this._getUrl(method, parameters, url), 139 postData: this._getContent(method, parameters),140 140 contentType: this.contentType, 141 141 handleAs: this.handleAs, 142 preventCache: true 142 headers: this.headers, 143 preventCache: this.preventCache 143 144 }; 144 // TODO: support this.headers?145 145 var d = null; 146 146 if(method == "POST"){ 147 args.postData = this._getContent(method, parameters); 147 148 d = dojo.rawXhrPost(args); 148 } 149 // TODO: support "PUT" and "DELETE" 150 else{ // "GET" 149 }else if(method == "PUT"){ 150 args.putData = this._getContent(method, parameters); 151 d = dojo.rawXhrPut(args); 152 }else if(method == "DELETE"){ 153 d = dojo.xhrDelete(args); 154 }else{ // "GET" 151 155 d = dojo.xhrGet(args); 152 156 }