Changeset 16338 for schedule


Ignore:
Timestamp:
05/27/13 17:23:52 (11 years ago)
Author:
tanio
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • schedule/Module/calendar.php

    r16337 r16338  
    120120                                                                  xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
    121121                                                                  }
    122                                                                 xmlhttp.onreadystatechange=function()
     122                                                                xmlhttp.onreadystatechange=function(data)
    123123                                                                  {
    124124                                                                  if (xmlhttp.readyState==4 && xmlhttp.status==200)
     
    126126                                                                               
    127127                                                                                        Data[src]= new Array();
     128                                                                                        var str="";
    128129                                                                                        line=xmlhttp.responseText.split('\n');
    129130                                                                                        for(row=0;row<line.length;row++)
    130131                                                                                        {
    131132                                                                                                rows=line[row].split(',');
    132                                                                                                 Data[src][row]=rows[4];
    133                                                                                                 document.getElementById('data').innerHTML=Data[0][row];
     133                                                                                                str+=Data.push(rows[4]);
    134134                                                                                        }
    135                                                                                         //GraphData.apply(src,Data);
     135                                                                                        return str;
     136                                                                                       
    136137                                                                        }
    137138                                                                }
     
    140141                                                                xmlhttp.send();
    141142                                                        }
    142                                                         /*function GraphData(src,data)
    143                                                         {
    144                                                                 document.getElementById('data').innerHTML=data[];
    145                                                         }*/
     143                                                       
     144                                                                document.getElementById('data').innerHTML=xmlhttp[0];
     145                                                       
    146146                                                       
    147147                                                       
Note: See TracChangeset for help on using the changeset viewer.