![](bmp/CLASSHEADER.gif)
This javascript class allows making remote method callbacks to the server using JSON messaging. The control calls back to ASPX pages or control on a page that contain methods marked up with a [CallbackMethod] Attribute.
The client code is very simple:
var Manual = new AjaMethodCallbackAjaxMethodCallback("Callback","SimpleMethodcallbacks.aspx");Manual.targetControlId = "Page"; // optionally specify control ID// *** Call method: Method name, Array of parameters, Callback and Error handlersManual.callMethod("AddNumbers",[212,122],ManualMethod_Callback,OnPageError);...function ManualMethod_Callback(Result){ alert(Result); // 434}function OnPageError(OnPageError){ alert(Result.message);}
Using this class provides declarative logic to make a remote method calls from JavaScript code including the ability to route calls to a specific server control. This makes this a powerful tool for control developers to have client code communicate back to their controls in a control localized manner.
Remarks
This class requires use in conjunction with the server sie wwCallbackMethod control which provides the server side method processing semantics.
Class Members
See also:
Class AjaxMethodCallback© West Wind Technologies, 1996-2016 • Updated: 04/27/14
Comment or report problem with topic