- Ajax.xml_client.abort();
- Ajax.xml_client.onreadystatechange = function()
- {
- if(Ajax.xml_client.readyState == 4) {
- if (Ajax.xml_client.status == 200) {
- if (obj != null) {
- document.getElementById(obj).innerHTML = Ajax.xml_client.responseText;
- }
- if (func != null) {
- func(Ajax.xml_client.responseText);
- }
- } else if (Ajax.xml_client.status == 403) {
- window.location.reload();
+ if (src.match(/^http/i) == null) {
+ src = platal_baseurl + src;
+ }
+ this.obj = obj;
+ this.func = func;
+ this.xml_client.abort();
+ this.xml_client.onreadystatechange = this.apply_update_html(this);
+ this.xml_client.open ('GET', src, true);
+ this.xml_client.send (null);
+ return false;
+ }
+
+ this.apply_update_html = function(ajax)
+ {
+ return function()
+ {
+ if(ajax.xml_client.readyState == 4) {
+ if (ajax.xml_client.status == 200) {
+ if (ajax.obj != null) {
+ document.getElementById(ajax.obj).innerHTML = ajax.xml_client.responseText;