Title: [waffle-scm] [105] trunk/core/src/main: Added waffle.js.
Revision
105
Author
mauro
Date
2007-05-28 11:31:21 -0500 (Mon, 28 May 2007)

Log Message

Added waffle.js. Corrected url in waffle.tld.

Modified Paths


Added Paths

Diff

Added: trunk/core/src/main/js/waffle.js (0 => 105)

--- trunk/core/src/main/js/waffle.js	                        (rev 0)
+++ trunk/core/src/main/js/waffle.js	2007-05-28 16:31:21 UTC (rev 105)
@@ -0,0 +1,19 @@
+function fireMethod(methodName) {
+    submitMethodForm(document.forms[0], methodName, '');
+}
+
+function fireMethodWithEncoding(methodName, encoding) {
+    submitMethodForm(document.forms[0], methodName, encoding);
+}
+
+function submitMethodForm(form, methodName, encoding) {
+    var method = document.createElement("input");
+    method.setAttribute("type", "hidden");
+    method.setAttribute("name", "method");
+    method.value = methodName;
+
+    form.appendChild(method);
+    form.encoding = encoding;
+    form.submit();
+    return true;
+}

Modified: trunk/core/src/main/resources/META-INF/waffle.tld (104 => 105)

--- trunk/core/src/main/resources/META-INF/waffle.tld	2007-05-28 15:33:21 UTC (rev 104)
+++ trunk/core/src/main/resources/META-INF/waffle.tld	2007-05-28 16:31:21 UTC (rev 105)
@@ -9,7 +9,7 @@
     <display-name>Custom functions</display-name>
     <tlib-version>1.1</tlib-version>
     <short-name>waffle</short-name>
-    <uri>http://thoughtworks.com/java/waffle</uri>
+    <uri>http://waffle.codehaus.org/tld</uri>
 
     <function>
         <description>Find field errors for the name passed</description>


To unsubscribe from this list please visit:

http://xircles.codehaus.org/manage_email

Reply via email to