Client scripts can call server-side methods with parameters using
post method.
You can add an indefinite number of parameters using the
AddParam method, or using the
post method.
The parameters you add must have a correspondent on the server-side method that manipulates the data.
The server-side method needs to be declared public.
// using AddParam
ob_post.AddParam("param1", paramValue1);
ob_post.AddParam("param2", paramValue2);
ob_post.post(null, "myServerMethod", myFunction);
// using post
ob_post.post(null, "myServerMethod", myFunction, {"param1":paramValue1, "param2":paramValue2});
For more information please check
post method documentation.
See also:
AddParam tutorial.