Class RemoteCall
Object
|
+--RemoteCall
- class
RemoteCall
Calls the specified url with the given parametes. After receiving the response will call the renderers render() method; see ExampleRenderer
Example:
new RemoteCall('/test/test.jsp', {'one':'1'}, new ExampleRenderer());
Defined in net/sf/jsm/ajax/RemoteCall.js
Constructor Summary |
RemoteCall
(<String> url, <Hash> params, <Renderer> renderer, <boolean> async)
Calls the specified url with the given parametes.
|
Method Summary |
void
|
ajaxUpdate(request)
Called on successfull response
|
void
|
handleError(request)
Called on failure response; will pop up response text in a new window.
|
Object
|
toString()
|
params
<private> Object params
renderer
Object renderer
url
Object url
RemoteCall
RemoteCall(<String> url, <Hash> params, <Renderer> renderer, <boolean> async)
Calls the specified url with the given parametes. After receiving the response will call the renderers render() method
Parameters:
params
- The request parameters
renderer
- The renderer which will be called - Has to provide a render(requestParams, response) method where requestParams is the params assoziative array and response is the JSON expression returned from the url
async
- (Optional) Should the request send be asyncronous Default: true;
ajaxUpdate
void ajaxUpdate(request)
Called on successfull response
handleError
void handleError(request)
Called on failure response; will pop up response text in a new window.
toString
Object toString()
Documentation generated by
JSDoc on Tue Sep 26 08:42:57 2006