LdWidgetUid ajaxCallback
From WidgetAvenue Wiki
Contents |
Why use this function?
After making an ajaxCall, it is recommended to use this function which sets event listeners properly . It can be used either directly, or after parsing the response text.
Summary
This functions sets content and event listeners from response to destNode .
Syntax
ldWidgetUid_ajaxCallback (url, destNodeClassName, response)
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.
- reponse is a string representing the html code that will be inserted in the target destination node.
Example
ldWidgetUid_ajaxCallback ('http://example.com/ajax.xhtml','ldWidgetContent','<b>hello</b>world');
