summaryrefslogtreecommitdiffstats
path: root/logfiles-tail-ajax.lsp
diff options
context:
space:
mode:
authorTed Trask <ttrask01@yahoo.com>2008-09-03 13:51:14 +0000
committerTed Trask <ttrask01@yahoo.com>2008-09-03 13:51:14 +0000
commiteb36e4c9737dee9dd3aaef56abcfcf6c407bd100 (patch)
treef823409966cb2c8152747236a312cbfe80c7e608 /logfiles-tail-ajax.lsp
parent3f22a6dd4d2336bf0c3409c400faa9f5488f0e32 (diff)
downloadacf-alpine-baselayout-eb36e4c9737dee9dd3aaef56abcfcf6c407bd100.tar.bz2
acf-alpine-baselayout-eb36e4c9737dee9dd3aaef56abcfcf6c407bd100.tar.xz
Added javascript tail functionality to logfiles.
git-svn-id: svn://svn.alpinelinux.org/acf/alpine-baselayout/trunk@1441 ab2d0c66-481e-0410-8bed-d214d4d58bed
Diffstat (limited to 'logfiles-tail-ajax.lsp')
-rw-r--r--logfiles-tail-ajax.lsp12
1 files changed, 12 insertions, 0 deletions
diff --git a/logfiles-tail-ajax.lsp b/logfiles-tail-ajax.lsp
new file mode 100644
index 0000000..8697208
--- /dev/null
+++ b/logfiles-tail-ajax.lsp
@@ -0,0 +1,12 @@
+<% local view, viewlibrary, page_info = ... %>
+<%
+ require("json")
+ require("html")
+%>
+Status: 200 OK
+Content-Type: "application/json"
+<% io.write("\n") %>
+<%
+ view.value.filecontent.value = html.html_escape(view.value.filecontent.value)
+ print(json.encode(view))
+%>