Closed hjujah closed 11 years ago
Hi @hjujah,
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.
Thanks a lot for the tip! Great plugin, btw... I love it
Thanks! I'm glad you find it useful.
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!