This example calls the noParam function which
invokes a server-side JSON call that then calls a handler
back in the browser.
The client-side JavaScript for looks like:
<script>
// <![CDATA[
function callNoParam() {
noParam("noParamCallback");
}
function noParamCallback() {
alert("the server called me back... woo hoo!");
}
// ]]>
</script>
Let's send the contents of a test field and process it:
The Script to do this is:
<script>
// <![CDATA[
function stringSender() {
var q = jQuery("#myField")[0];
var v = q.value;
oneString("stringCallback", v);
}
function stringCallback(what) {
jQuery("#dest")[0].innerHTML = "The server said: "+what;
}
// ]]>
</script>
Let's send some numbers to the server and have the server
add 1 to each of the numbers.
Enter comma separated numbers:
Lift is Copyright 2007-2010 WorldWide Conferencing, LLC. Distributed under an Apache 2.0 License.
Lift version 2.3 built on Tue Apr 05 13:24:00 PDT 2011.
Stats: Total Memory: 533,659,648
Free Memory: 496,555,704
Open Sessions: 26
Updated At: Tue Jun 18 18:33:30 PDT 2013
Started At: Tue Apr 30 12:37:45 PDT 2013