You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I can't make plax to work on elements loaded via ajax.
On document ready I have this code:
$('.plax').plaxify(); $.plax.enable({ "activityTarget": $('footer')});
Then before my ajax call i have this:
$.plax.disable(true);
And when the content is loaded i call again: $.plax.enable({ "activityTarget": $('footer')});
Note:Ajax function completely destroys old plax elements and render new ones.
Please can you advise? What am I doing wrong?
Thanks in advance.for your answer!
The text was updated successfully, but these errors were encountered:
Since you're removing the plaxed elements from the DOM entirely, they're removed from Plax too. My guess is you'll want to do $('.plax').plaxify(); again (or on whatever your new content is) to be sure you add the new content before you call $.plax.enable again.
Hi,
I can't make plax to work on elements loaded via ajax.
On document ready I have this code:
$.plax.enable({ "activityTarget": $ ('footer')});
$('.plax').plaxify();
Then before my ajax call i have this:
$.plax.disable(true);
And when the content is loaded i call again:
$.plax.enable({ "activityTarget": $ ('footer')});
Note:Ajax function completely destroys old plax elements and render new ones.
Please can you advise? What am I doing wrong?
Thanks in advance.for your answer!
The text was updated successfully, but these errors were encountered: