Function addAjaxAnswerToElement
add the respone of an ajax request to the innerHTML of an element (usefully as sample for implementation of infinite scrolling)
addAjaxAnswerToElement("pnl1", 0);
addAjaxAnswerToElement(array("pnl1", "pnl2"), 0);
CAVE: use the same order for the elements like in the multi ajax response
Located at
ajax.lib.php
Parameters summary
mixed |
$element |
as string or array if the callback get a multi ajax response from the request |
integer |
$request_id |
Return value summary
string
|
string |