Changeset 2474 for trunk/contactcenter/js/connector.js
- Timestamp:
- 04/09/10 16:01:19 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/contactcenter/js/connector.js
r2473 r2474 111 111 catch (e) 112 112 { 113 delete _this.requests[id]; 113 114 //showMessage(e); 114 115 } … … 117 118 try 118 119 { 119 target += '&BackgroundRequest=' + Date.parse( new Date ); 120 if (method == '' || method == 'GET') 120 if ( method != 'POST') 121 method = 'GET'; 122 oxmlhttp.open( method, target, true); 123 oxmlhttp.setRequestHeader( 'BackgroundRequest', Date.parse( new Date ) ); 124 if ( method == 'GET') 121 125 { 122 126 if (typeof(handler) == 'function') … … 124 128 oxmlhttp.onreadystatechange = sub_handler; 125 129 } 126 oxmlhttp.open("GET",target,true);127 130 oxmlhttp.send(null); 128 131 } … … 133 136 oxmlhttp.onreadystatechange = sub_handler; 134 137 } 135 oxmlhttp.open("POST",target, true);136 138 oxmlhttp.setRequestHeader('Content-Type','application/x-www-form-urlencoded'); 137 139 oxmlhttp.send(data);
Note: See TracChangeset
for help on using the changeset viewer.