2
I need to reload a JS function as soon as I scroll the page with infinite scroll
, in AJAX.
When the page is scrolled the JS file needs to track.
2
I need to reload a JS function as soon as I scroll the page with infinite scroll
, in AJAX.
When the page is scrolled the JS file needs to track.
2
Logically:
funcao()
;funcao()
-> does what you want.Try to imagine that the coupler looks like a hover
or click
, but it would, this time, be scroll
. More specifically: when the scroll reaches the low end of the viewport, execute something (and this is where AJAX comes in).
What is the difficulty in this logic?
For technical purposes, your question is very vague.
Sorry for the lack of clarity, I created a function in a class and I would like it to be repeated in the Infinite scroll as well, because when the Infinite is loaded it does not bring the function back. I will reproduce your logic. Thank you!
Dispose! Anything we are available. =)
Browser other questions tagged javascript ajax
You are not signed in. Login or sign up in order to post.
Sergio, Sorry for the complication. "Once you scroll the page" I mean the scroll. I am working with Infinite scroll and would like my function to be applied in the next ones as well. Here is an example http://shopluxo.com.br/maquiagem
– lucas inverso
I’m using a function in a class and I would need it to be repeated in the Infinite Scroll, I don’t know if I could express myself clearly.
– lucas inverso
Sergio, I managed to solve, very simple problem and was breaking the heads rs. I appreciate the willingness to help. Hugs
– lucas inverso
Lucas, great. I’ll delete the comments here. Next time add more information. There are a lot of people who want to help, but without knowing everything, no one risks guessing.
– Sergio