Ignore:
Timestamp:
06/08/12 17:02:06 (12 years ago)
Author:
tbretz
Message:
Added some access logging.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/www/smartfact/index.js

    r14105 r14121  
    2929function onload()
    3030{
    31     try { var dummy = new XMLHttpRequest(); }
     31    try
     32    {
     33        var xmlLoad = new XMLHttpRequest();
     34        xmlLoad.open('POST', "index.php?load", true);
     35        xmlLoad.onload = function()
     36        {
     37            if (xmlLoad.status!=200)
     38            {
     39                //alert("ERROR[0] - HTTP request '"+xmlLoad.statusText+" ["+xmlLoad.status+"]");
     40                return;
     41            }
     42            if (xmlLoad.responseText.length>0)
     43                alert(xmlLoad.responseText);
     44        };
     45        xmlLoad.send(null);
     46    }
    3247    catch(e)
    3348    {
Note: See TracChangeset for help on using the changeset viewer.