Changeset 9355

Show
Ignore:
Timestamp:
06/28/07 07:55:52 (19 months ago)
Author:
jaredj
Message:

Minor update to wires code. fixes #3555

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • dojox/trunk/wire/ml/Service.js

    r9252 r9355  
    3030        serviceType: "", 
    3131        handlerClass: "", 
     32        preventCache: true, 
    3233 
    3334        postCreate: function(){ 
     
    137138                var args = { 
    138139                        url: this._getUrl(method, parameters, url), 
    139                         postData: this._getContent(method, parameters), 
    140140                        contentType: this.contentType, 
    141141                        handleAs: this.handleAs, 
    142                         preventCache: true 
     142                        headers: this.headers, 
     143                        preventCache: this.preventCache 
    143144                }; 
    144                 // TODO: support this.headers? 
    145145                var d = null; 
    146146                if(method == "POST"){ 
     147                        args.postData = this._getContent(method, parameters); 
    147148                        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" 
    151155                        d = dojo.xhrGet(args); 
    152156                }