- Timestamp:
- 06/02/13 15:53:20 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
schedule/Module/calendar.php
r16586 r16590 101 101 //calls the xml request in a loop based on the current sources 102 102 var source = ['Mrk 421','Mrk 501']; 103 for (i = 0; i<source.length; i++) { 103 for (i = 0; i<source.length; i++) 104 { 104 105 testXMLData(i, source); 105 106 } … … 119 120 dataSource.push(line); 120 121 if (dataSource.length == source.length) 122 { 121 123 displayXMLData(dataSource, source); //this will be called when the last data from the list is read 124 } 122 125 } 123 126 testXML.send(); … … 128 131 //This function splits the lines of data per data source 129 132 var dataGraph = new Array(source.length); 130 for (i=0; i<source.length; i++) { 133 for (i=0; i<source.length; i++) 134 { 131 135 dataGraph[i] = new Array(); //dataGraph contains the individual points for each source i 132 136 for(row=0;row<dataSource[i].length;row++) … … 140 144 141 145 CAL.addEventListener("onSelect", function(){ 142 143 146 day =this.selection.print("%d").join("\n"); 147 month =this.selection.print("%m").join("\n"); 144 148 year =this.selection.print("%Y").join("\n"); 145 149 //document.getElementById('data').innerHTML="Calendar selected! ";
Note:
See TracChangeset
for help on using the changeset viewer.