The place for more technical questions for those who want to create new pagetypes or bespoke functionality.

Scroll function

  • Neil Pollock
  • Onderwerp Auteur
  • Offline
  • Premium lid
  • Premium lid
Meer
9 jaren 5 maanden geleden #4330 door Neil Pollock
Scroll function werd gestart door Neil Pollock
I'm trying to use the jQuery scroll function in a XOT project, but for some reason it doesn't want to work. As a test I've added this, but the console logs nothing:
Code:
$(window).scroll(function(){ console.log("scrolling"); });

Any ideas why this would be?

Graag Inloggen of een account aanmaken deelnemen aan het gesprek.

Meer
9 jaren 5 maanden geleden - 9 jaren 5 maanden geleden #4331 door JohnSmith
Beantwoord door JohnSmith in topic Scroll function
Hi Neil,

It's not the window that is scrolling but the x_pageHolder panel when pages scroll. Try this:

Code:
$('#x_pageHolder').scroll(function(){ console.log("scrolling"); });

John
Laatst bewerkt 9 jaren 5 maanden geleden door JohnSmith.

Graag Inloggen of een account aanmaken deelnemen aan het gesprek.

Moderators: JohnSmith
Tijd voor maken pagina: 0.139 seconden
Copyright © 2026 The Xerte Project.
Xerte logo Apereo logo OSI Logo