LdWidgetUid ajaxCall
From WidgetAvenue Wiki
Contents |
Why use this function?
Standard XMLHttpRequest will not work on most host platforms, it is required to use the Ajax proxy functions provided by the host platforms.
Summary
This functions returns an XHTML string, and triggers the execution of a callback function.
Syntax
ldWidgetUid_ajaxCall(url, destNodeClassName, waitFunctionName, callbackFunctionName)
where
- url is a string representing the url of the web service that will return the XHTML string
- destNodeClassName is a string representing the class name of the target destination node. When specified, and when ldWidgetUid_ajaxCallback is used, the XHTML string returned will be inserted in destNode (replacing the existing content)
- waitFunctionName is a string representing the name of function that will be executed every 50 ms until the response is received .
- callbackFunctionName is a string representing the name of the callback function to be executed.
Example
ldWidgetUid_ajaxCall ('http://example.com/ajax.xhtml','ldWidgetContent','ldWidgetUid_wait','ldWidgetUid_ajaxCallback');
