Changeset 16471
- Timestamp:
- 05/30/13 10:21:14 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
schedule/Module/calendar.php
r16468 r16471 108 108 var T = []; 109 109 var sources = 0; 110 var xmlhttp = []; 110 111 111 112 for(sources=0;sources<source.length;sources++) … … 115 116 if (window.XMLHttpRequest) 116 117 {// code for IE7+, Firefox, Chrome, Opera, Safari 117 xmlhttp =new XMLHttpRequest();118 xmlhttp[sources]=new XMLHttpRequest(); 118 119 } 119 120 120 121 else 121 122 {// code for IE6, IE5 122 xmlhttp =new ActiveXObject("Microsoft.XMLHTTP");123 xmlhttp[sources]=new ActiveXObject("Microsoft.XMLHTTP"); 123 124 } 124 125 125 xmlhttp .onreadystatechange=function()126 xmlhttp[sources].onreadystatechange=function() 126 127 { 127 128 … … 131 132 Data[sources]= new Array(); 132 133 133 line=xmlhttp .responseText.split('\n');134 line=xmlhttp[sources].responseText.split('\n'); 134 135 for(row=0;row<line.length;row++) 135 136 { … … 145 146 } 146 147 147 xmlhttp .open("GET","http://www.fact-project.org/smartfact/index.php?source="+escape(source[sources])+"&time="+year+"-"+month+"-"+day,true);148 xmlhttp .send();148 xmlhttp[sources].open("GET","http://www.fact-project.org/smartfact/index.php?source="+escape(source[sources])+"&time="+year+"-"+month+"-"+day,true); 149 xmlhttp[sources].send(); 149 150 //document.getElementById('data').innerHTML=source.length+""+Data[sources]; 150 151
Note:
See TracChangeset
for help on using the changeset viewer.