Plugin

Archived
Forum
(read-only)

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
carlos.pedro

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
# 1
Developer
Laisvunas

Hi,

Post here your code for analysis.

carlos.pedro
# 2
carlos.pedro

Laisvunas.
I attach the pages of the code as I can’t copy/paste it here.
Best
P.

 

File Attachments
Archive.zip  (File Size: 4KB - Downloads: 42)
Laisvunas
# 3
Developer
Laisvunas

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”.