- Timestamp:
- 05/31/13 06:53:15 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
schedule/Module/calendar.php
r16512 r16513 114 114 115 115 index = xmlhttp.length - 1; 116 document.getElementById('data').innerHTML="XML request is in the array! "; 116 $('#data').append('XML request is in the array! '); 117 //document.getElementById('data').innerHTML="XML request is in the array! "; 117 118 118 119 } 119 120 120 function getXMLData()121 {122 getXML();123 xmlhttp[index].onreadystatechange=xmlStateChange();124 document.getElementById('data').innerHTML="XML data were taken! ";125 126 xmlhttp[index].open("GET","http://www.fact-project.org/smartfact/index.php?source="+escape(source[index])+"&time="+year+"-"+month+"-"+day,true);127 xmlhttp[index].send();128 }129 130 121 function xmlStateChange() 131 122 { … … 135 126 //sourceData[index]= new Array(); //--> remove this if you use sourceData[[]] 136 127 line=xmlhttp[index].responseText.split('\n'); 137 document.getElementById('data').innerHTML="XML value has changed!"; 128 $('#data').append('XML value has changed!'); 129 //document.getElementById('data').innerHTML="XML value has changed!"; 138 130 document.getElementById('data').innerHTML=xmlhttp[index].responseText; 139 131 … … 145 137 document.getElementById('data').innerHTML=line; 146 138 } 147 148 139 149 140 } 150 141 142 function getXMLData() 143 { 144 getXML(); 145 xmlhttp[index].onreadystatechange=xmlStateChange(); 146 $('#data').append('XML data were taken'); 147 //document.getElementById('data').innerHTML="XML data were taken! "; 148 149 xmlhttp[index].open("GET","http://www.fact-project.org/smartfact/index.php?source="+escape(source[index])+"&time="+year+"-"+month+"-"+day,true); 150 xmlhttp[index].send(); 151 } 152 153 151 154 function displayData() //--> you can use the content of this function in the event listener 152 155 { … … 162 165 month =this.selection.print("%m").join("\n"); 163 166 year =this.selection.print("%Y").join("\n"); 164 document.getElementById('data').innerHTML="Calendar selected! "; 167 //document.getElementById('data').innerHTML="Calendar selected! "; 168 $('#data').append('XML data were taken'); 165 169 166 170
Note:
See TracChangeset
for help on using the changeset viewer.