Changeset 16396
- Timestamp:
- 05/28/13 15:05:11 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
schedule/Module/calendar.php
r16395 r16396 110 110 var T = []; 111 111 var src = 0; 112 113 do114 {115 112 if (window.XMLHttpRequest) 116 113 {// code for IE7+, Firefox, Chrome, Opera, Safari … … 121 118 xmlhttp=new ActiveXObject("Microsoft.XMLHTTP"); 122 119 } 123 xmlhttp.onreadystatechange=function() 124 { 125 if (xmlhttp.readyState==4 && xmlhttp.status==200) 126 { 127 128 Data[src]= new Array(); 129 line=xmlhttp.responseText.split('\n'); 130 for(row=0;row<line.length;row++) 131 { 132 rows=line[row].split(','); 133 Data[src].push(rows[4]); 134 } 135 136 GraphData(Data,src); 137 //document.getElementById('data').innerHTML=Data[src]; 120 121 do 122 { 123 xmlhttp.onreadystatechange=function() 124 { 125 if (xmlhttp.readyState==4 && xmlhttp.status==200) 126 { 127 128 Data[src]= new Array(); 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 } 135 136 GraphData(Data,src); 137 //document.getElementById('data').innerHTML=Data[src]; 138 } 138 139 } 139 } 140 141 xmlhttp.open("GET","http://www.fact-project.org/smartfact/index.php?source="+escape(source[src])+"&time="+year+"-"+month+"-"+day,true); 142 xmlhttp.send(); 143 document.getElementById('data').innerHTML=source.length+""+src; 144 src++; 145 }while(src<source.length); 140 141 xmlhttp.open("GET","http://www.fact-project.org/smartfact/index.php?source="+escape(source[src])+"&time="+year+"-"+month+"-"+day,true); 142 xmlhttp.send(); 143 document.getElementById('data').innerHTML=source.length+""+src; 144 src++; 145 }while(src<source.length); 146 146 function GraphData(array,index) 147 147 {
Note:
See TracChangeset
for help on using the changeset viewer.