- Timestamp:
- 03/26/13 22:37:41 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/www/smartfact/index.js
r15056 r15165 193 193 194 194 var txt = xmlCmd.responseText.split('\n'); 195 196 195 login(txt[0]); 197 198 switch (txt[1]) 199 { 200 case "1": alert("dimctrl unreachable."); break; 201 case "2": /*success*/ break; 202 default: alert("Return code '"+txt[0]+"' unknown."); break; 203 } 204 if (txt.length>2) 196 if (txt.length>1) 205 197 alert(xmlCmd.responseText); 198 else 199 alert("Command submitted."); 206 200 }; 207 201 xmlCmd.send(null); … … 970 964 $("reporttime"+z).innerHTML=""; 971 965 } 972 966 973 967 // invalidate? 974 968 timeoutText = setTimeout(refresh_text, 1000); 975 969 return; 976 970 } 977 971 978 972 var xmlText = new XMLHttpRequest(); 979 973 xmlText.open('GET', "data/"+fname+'.data', true); … … 999 993 cycleCol($("ldot"+z)); 1000 994 update_text(fname, counter>1 ? xmlText.responseText : undefined); 1001 doresize(z); 995 doresize(z); 1002 996 } 1003 997 timeoutText = setTimeout(refresh_text, 3000); … … 1080 1074 mp3.src = name+".mp3"; 1081 1075 ogg.src = name+".ogg"; 1076 mp3.type = "audio/mp3"; 1077 ogg.type = "audio/ogg"; 1082 1078 1083 1079 audio.replaceChild(mp3, audio.firstChild);
Note:
See TracChangeset
for help on using the changeset viewer.