Results 1 to 1 of 1
Thread: Probably A Simple Question
Jul 26, 2012, 12:01 #1
- Join Date
- Jul 2005
- 0 Post(s)
- 0 Thread(s)
Probably A Simple Question
I'm not overly familiar with js, jQuery, Ajax... my experience is typically just integrating existing stuff into PHP... which is what I'm doing now.
I have a lightbox (FancyBox) which loads photos with user comments. The user comments are paginated by a continously scrolling jQuery script called Screw.
The way screw works is on the body selector, when a div is scrolled into view it populates the div with a remote php script.
The problem I'm encountering is that loading the lightbox in Ajax seems to make Screw think that the div has been seen and immediately populates all of the DIVs.
Since the lightbox is giving the false impression that everything is in view, is there a way to alter the jquery so that it does not fire on the body selector but perhaps fires when a button is clicked?
Here is the call on the body selector: