Supporting each other

Community forums

Welcome, Guest
Username: Password: Remember me
The place for more technical questions for those who want to create new pagetypes or bespoke functionality.
  • Page:
  • 1

TOPIC:

Scroll function 7 years 8 months ago #4330

  • Neil Pollock
  • Neil Pollock's Avatar Topic Author
  • Offline
  • Premium Member
  • Premium Member
  • Posts: 92
  • Thank you received: 4
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:
$(window).scroll(function(){
  console.log("scrolling");
});

Any ideas why this would be?

Please Connexion or Create an account to join the conversation.

Scroll function 7 years 8 months ago #4331

  • JohnSmith
  • JohnSmith's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 397
  • Thank you received: 71
Hi Neil,

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

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

John

Please Connexion or Create an account to join the conversation.

Last edit: by JohnSmith.
  • Page:
  • 1
Moderators: JohnSmith
Time to create page: 0.045 seconds
Copyright © 2024 The Xerte Project.
Xerte logo Apereo logo OSI Logo

Search