| 45 |
), |
), |
| 46 |
|
|
| 47 |
URL : 'teeda.ajax', |
URL : 'teeda.ajax', |
| 48 |
|
|
| 49 |
|
ASYNC : true, |
| 50 |
|
|
| 51 |
DEBUG : false, |
DEBUG : false, |
| 52 |
|
|
| 59 |
this.name = self.AJAX_COMPONENT_NAME; |
this.name = self.AJAX_COMPONENT_NAME; |
| 60 |
this.responseType = null; |
this.responseType = null; |
| 61 |
this.url = self.URL; |
this.url = self.URL; |
| 62 |
|
this.async = self.ASYNC; |
| 63 |
this.params = null; |
this.params = null; |
| 64 |
this.doAction = function(ajaxResponse){} |
this.doAction = function(ajaxResponse){} |
| 65 |
}, |
}, |
| 138 |
} |
} |
| 139 |
var sysdate = new String(new Date()); |
var sysdate = new String(new Date()); |
| 140 |
var url = ajaxComponent.url; |
var url = ajaxComponent.url; |
| 141 |
|
var async = ajaxComponent.async; |
| 142 |
var parameters = ""; |
var parameters = ""; |
| 143 |
var params = ajaxComponent.params; |
var params = ajaxComponent.params; |
| 144 |
if(!params){ |
if(!params){ |
| 162 |
url += parameters; |
url += parameters; |
| 163 |
if(xmlHttp){ |
if(xmlHttp){ |
| 164 |
self._registAjaxListener(xmlHttp, ajaxComponent); |
self._registAjaxListener(xmlHttp, ajaxComponent); |
| 165 |
xmlHttp.open("GET", url, true); |
xmlHttp.open("GET", url, async); |
| 166 |
xmlHttp.setRequestHeader("If-Modified-Since", sysdate); |
xmlHttp.setRequestHeader("If-Modified-Since", sysdate); |
| 167 |
xmlHttp.send(null); |
xmlHttp.send(null); |
| 168 |
} |
} |
| 177 |
} |
} |
| 178 |
if(xmlHttp){ |
if(xmlHttp){ |
| 179 |
self._registAjaxListener(xmlHttp, ajaxComponent); |
self._registAjaxListener(xmlHttp, ajaxComponent); |
| 180 |
xmlHttp.open("POST", url, true); |
xmlHttp.open("POST", url, async); |
| 181 |
xmlHttp.setRequestHeader('Content-type', 'application/x-www-form-urlencoded'); |
xmlHttp.setRequestHeader('Content-type', 'application/x-www-form-urlencoded'); |
| 182 |
xmlHttp.setRequestHeader("If-Modified-Since", sysdate); |
xmlHttp.setRequestHeader("If-Modified-Since", sysdate); |
| 183 |
xmlHttp.send(parameters); |
xmlHttp.send(parameters); |