When I use the animation in the controller
$ajax->container($this->getMainContainer())
->animate(true) // TRUE
->html($this->renderView($view, $parameters));
and initialize this in the html
jQuery(document).ajaxcom("[data-ajaxcom]", {
complete: function() {
if (typeof initPage === 'function') {
initPage();
}
}
});
The complete function is actually triggered before the animation is completed and the part of the page refreshed. This does not allow in the initPage() function to manage the new html response.
When I use the animation in the controller
and initialize this in the html
The complete function is actually triggered before the animation is completed and the part of the page refreshed. This does not allow in the initPage() function to manage the new html response.