Changeset 16402
- Timestamp:
- 05/28/13 15:31:00 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
schedule/Module/calendar.php
r16401 r16402 122 122 xmlhttp.onreadystatechange=function() 123 123 { 124 for(src=0;src<source.length;src++) 125 { 124 126 if (xmlhttp.readyState==4 && xmlhttp.status==200) 125 127 { 126 127 Data[src]= new Array(); 128 if(src==0) 129 { 130 Data[src]= new Array(); 131 132 line=xmlhttp.responseText.split('\n'); 133 for(row=0;row<line.length;row++) 134 { 135 rows=line[row].split(','); 136 Data[0].push(rows[4]); 137 } 138 } 139 else 140 { 141 Data[src]= new Array(); 142 143 line=xmlhttp.responseText.split('\n'); 144 for(row=0;row<line.length;row++) 145 { 146 rows=line[row].split(','); 147 Data[1].push(rows[4]); 148 } 128 149 129 line=xmlhttp.responseText.split('\n');130 for(row=0;row<line.length;row++)131 {132 rows=line[row].split(',');133 Data[0].push(rows[4]);134 150 } 135 136 151 GraphData(Data, src); 137 152 //document.getElementById('data').innerHTML=Data[src]; … … 142 157 xmlhttp.send(); 143 158 document.getElementById('data').innerHTML=source.length+""+src; 144 159 } 145 160 146 161 function GraphData(array, index)
Note:
See TracChangeset
for help on using the changeset viewer.