diff options
author | Ted Trask <ttrask01@yahoo.com> | 2009-07-20 14:36:13 +0000 |
---|---|---|
committer | Ted Trask <ttrask01@yahoo.com> | 2009-07-20 14:36:13 +0000 |
commit | cef9dca80f0c53870be2a77b959e767e7c7f0299 (patch) | |
tree | 469b4158b13bbf110a37f6dc6c87fe1a184bf433 | |
parent | 33c6624e549c58755932fee74d8fa49f10fc3a79 (diff) | |
download | acf-alpine-baselayout-cef9dca80f0c53870be2a77b959e767e7c7f0299.tar.bz2 acf-alpine-baselayout-cef9dca80f0c53870be2a77b959e767e7c7f0299.tar.xz |
Added logfiles tail error message when something goes wrong.
-rw-r--r-- | logfiles-tail-html.lsp | 8 |
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> |