Infinite Scroll
ExpressionEngine 1.x, ExpressionEngine 2
Back to this add-on's main page
View Other Add-ons From Laisvunas
Problem with JQuery in second page
Support Request
carlos.pedro
|
Posted: 05 October 2013 10:43 PM |
|
|
|
H Laisvunas
I tried to use the Infinite Scroll Plugin but I had a problem with the second (and subsequent) loaded page.
I have a bookmark plugin that runs using AJAX so that it updates in place, without refreshing the page.
The problem is that it works perfectly on the first page, but then it seems that all javascript is stripped off from those pages. With normal pagination, it works perfectly…
I confirmed it as I had a animated scroll to top link in the end of the entries list that worked when it was the first page but not on the loaded pages.
How can I make this work on the second page? Why is javascript not working on the loaded pages?
Best
P.
|
|
|
Laisvunas
|
Posted: 06 October 2013 01:49 PM |
# 1
|
|
Developer
|
Hi,
Post here your code for analysis.
|
|
|
carlos.pedro
|
Posted: 07 October 2013 10:19 AM |
# 2
|
|
|
Laisvunas.
I attach the pages of the code as I can’t copy/paste it here.
Best
P.
File Attachments
|
|
|
Laisvunas
|
Posted: 13 October 2013 02:28 PM |
# 3
|
|
Developer
|
Hi,
In your embed template entry-list there is javascript code wchich should be executed when jquery’s event “ready” fires. But when AJAX loads the template entry-list this event does not fire.
Try to use both “ready” event and event “DOMSubtreeModified”.
|
|
|