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

Scroll function

  • Neil Pollock
  • Auteur du sujet
  • Hors Ligne
  • Membre premium
  • Membre premium
Plus d'informations
il y a 9 ans 5 mois #4330 par Neil Pollock
Scroll function a été créé par 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?

Connexion ou Créer un compte pour participer à la conversation.

Plus d'informations
il y a 9 ans 5 mois - il y a 9 ans 5 mois #4331 par JohnSmith
Réponse de JohnSmith sur le sujet 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
Dernière édition: il y a 9 ans 5 mois par JohnSmith.

Connexion ou Créer un compte pour participer à la conversation.

Modérateurs: JohnSmith
Temps de génération de la page : 0.217 secondes
Copyright © 2026 The Xerte Project.
Xerte logo Apereo logo OSI Logo