Develop and Download Open Source Software

Browse CVS Repository

Diff of /pal/jstock/src/main/webapp/js/ajax.js

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.1 by karma, Wed Nov 1 12:26:26 2006 UTC revision 1.2 by karma, Wed Jan 10 11:42:44 2007 UTC
# Line 45  Kumu.Ajax = { Line 45  Kumu.Ajax = {
45    ),    ),
46        
47    URL : 'teeda.ajax',    URL : 'teeda.ajax',
48      
49      ASYNC : true,
50    
51    DEBUG : false,    DEBUG : false,
52    
# Line 57  Kumu.Ajax = { Line 59  Kumu.Ajax = {
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    },    },
# Line 135  Kumu.Ajax = { Line 138  Kumu.Ajax = {
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){
# Line 158  Kumu.Ajax = { Line 162  Kumu.Ajax = {
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        }        }
# Line 173  Kumu.Ajax = { Line 177  Kumu.Ajax = {
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);

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26