summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--logfiles-tail-html.lsp8
1 files changed, 7 insertions, 1 deletions
diff --git a/logfiles-tail-html.lsp b/logfiles-tail-html.lsp
index af04da4..81079c6 100644
--- a/logfiles-tail-html.lsp
+++ b/logfiles-tail-html.lsp
@@ -41,7 +41,12 @@
);
ID=window.setTimeout("Update();", 1000);
}
+ function handleerror(event, request, settings){
+ $(this).append("Error requesting page " + settings.url + "<BR>Perhaps the session has timed out.");
+ $("#Stop").click();
+ };
$(function(){
+ $("#errtxt").ajaxError(handleerror);
$("#Start").attr("disabled","disabled");
<% if not form.value.filename.errtxt then %>
Update();
@@ -63,10 +68,11 @@ end
</DL>
<textarea id="filecontent">
</textarea>
+<p class="error" id="errtxt"></p>
<DL>
<DT>Start / Stop tailing file</DT>
<DD>
-<input TYPE="button" ID="Start" VALUE="Start" onClick='Update(); $("#Start").attr("disabled","disabled");$("#Stop").removeAttr("disabled");'>
+<input TYPE="button" ID="Start" VALUE="Start" onClick='$("#errtxt").empty(); Update(); $("#Start").attr("disabled","disabled");$("#Stop").removeAttr("disabled");'>
<input TYPE="button" ID="Stop" VALUE="Stop" onClick='window.clearTimeout(ID); $("#Stop").attr("disabled","disabled");$("#Start").removeAttr("disabled");'>
</DD>
</DL>