Changeset 5 for src/main/webapp/newsession.xhtml
- Timestamp:
- 09/25/19 16:49:11 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/main/webapp/newsession.xhtml
r4 r5 75 75 </div> 76 76 <div id="results" style="visibility: hidden"> 77 Your session started.<br /><a href="" id="logref">view the log77 Session completed. <a href="" id="logref">view the log 78 78 file</a> <br /> <a href="" id="plotref">render a utilities plot</a>. 79 79 </div> … … 311 311 312 312 // see https://www.w3schools.com/xml/dom_httprequest.asp 313 var xmlHttp = new XMLHttpRequest(); 313 document.getElementById("startbutton").disabled=true; 314 document.getElementById("started").setAttribute("style",""); 315 316 var xmlHttp = new XMLHttpRequest(); 314 317 xmlHttp.onreadystatechange = function() { 315 318 if (this.readyState == 4) { 316 319 if (this.status == 200) { 317 320 var logurl="log/"+this.responseText+".json"; 318 document.getElementById("startbutton").disabled=true;319 321 document.getElementById("logref").href=logurl; 320 322 document.getElementById("plotref").href="plotlog.xhtml?id="+this.responseText; 321 document.getElementById("started").setAttribute("style","");322 323 323 324 sometimeWhen(function() { return urlExists(logurl) },
Note:
See TracChangeset
for help on using the changeset viewer.