Tell the user about AJAX errors.

Set AJAX options: 5s timeout, no caching.
Don't spool up a second request while the previous one is in progress.
If we repeatedly see the same receiver timestamp, warn the user that the JSON isn't being updated.
This commit is contained in:
Oliver Jowett 2015-01-07 18:43:08 +00:00
parent 97ca1c77e7
commit 93aedbe15c
2 changed files with 36 additions and 3 deletions

View file

@ -11,8 +11,9 @@ div#SpecialSquawkWarning { position: absolute; bottom: 25px; right: 430px; borde
background-color: #FFFFA3; opacity: 0.75; filter:alpha(opacity=75); padding: 5px;
text-align: center; }
table#optionsTabs { width: 100%; font-size: small; font-family: monospace; background-color: #ddd;
border: 1px; border-color: #000000;}
div#update_error { position: absolute; bottom: 25px; left: 25px; border: 2px solid red;
background-color: #FFFFA3; opacity: 0.75; filter:alpha(opacity=75); padding: 5px;
text-align: center; }
#tableinfo, #sudo_buttons { font-size: x-small; font-family: monospace; }