summaryrefslogtreecommitdiff
path: root/js/live/liveajax.js
diff options
context:
space:
mode:
authorDieter Hametner <dh (plus) vdr (at) gekrumbel (dot) de>2007-06-22 21:38:45 +0000
committerDieter Hametner <dh (plus) vdr (at) gekrumbel (dot) de>2007-06-22 21:38:45 +0000
commitd9e1b706df7ebcb0fa7e7e716291f9c88aad6a24 (patch)
treecc8464e145ca39021d2dbc81bb8d5969b47ed947 /js/live/liveajax.js
parent14141f08e8ae6fddb8215de51ce56972dfbb6ff4 (diff)
downloadvdr-plugin-live-d9e1b706df7ebcb0fa7e7e716291f9c88aad6a24.tar.gz
vdr-plugin-live-d9e1b706df7ebcb0fa7e7e716291f9c88aad6a24.tar.bz2
- Introducing Mootools as base javascript library.
- ported Infobox javascript code to this library. - LiveSimpleAjaxRequest uses Ajax-Object from mootools. - Start of distribution of javascript in source form (not compiled into the live binary).
Diffstat (limited to 'js/live/liveajax.js')
-rw-r--r--js/live/liveajax.js11
1 files changed, 11 insertions, 0 deletions
diff --git a/js/live/liveajax.js b/js/live/liveajax.js
new file mode 100644
index 0000000..a6a80ea
--- /dev/null
+++ b/js/live/liveajax.js
@@ -0,0 +1,11 @@
+/*
+ * Javascript function for quick ajax requests.
+ * This file needs mootools.js to be included on the pages.
+ */
+
+function LiveSimpleAjaxRequest(url, param, value)
+{
+ var req = new Ajax(url, {
+ method : 'post'
+ }).request(param + '=' + value);
+};