- Timestamp:
- 06/01/13 13:58:52 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
schedule/Module/calendar.php
r16548 r16549 171 171 { 172 172 var url = "https://www.fact-project.org/smartfact/index.php?source=Mrk%20421&time=2012-12-10" 173 te xtXML = new XMLHttpRequest();173 testXML = new XMLHttpRequest(); 174 174 175 te xtXML.onreadystatechange=function() {176 alert ("state: " + te xtXML.readyState + " status: " + textXML.status);177 if (te xtXML.readyState==4 && textXML.status==200)175 testXML.onreadystatechange=function() { 176 alert ("state: " + testXML.readyState + " status: " + testXML.status); 177 if (testXML.readyState==4 &&testXML.status==200) 178 178 { 179 179 alert ("request ok"); … … 181 181 }; 182 182 183 te xtXML.open("GET","http://www.fact-project.org/smartfact/index.php?source="+escape(source[index])+"&time="+year+"-"+month+"-"+day,true);184 xtextXML.send();183 testXML.open("GET",url,true); 184 testXML.send(); 185 185 } 186 186 CAL.addEventListener("onSelect", function(){ … … 191 191 $('#data').append('XML data were taken'); 192 192 193 testData(); 193 194 //displayData(); 194 for (i=0; i<source.length; i++)195 /*for (i=0; i<source.length; i++) 195 196 { 196 197 getXMLData(); 197 198 //display source data here sourceData[i] 198 199 //document.getElementById('data').innerHTML=sourceData[i]; 199 } 200 } */ 200 201 201 202 });
Note:
See TracChangeset
for help on using the changeset viewer.