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

Scroll function

  • Neil Pollock
  • Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
9 years 5 months ago #4330 by Neil Pollock
Scroll function was created by 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?

Please Log in or Create an account to join the conversation.

More
9 years 5 months ago - 9 years 5 months ago #4331 by JohnSmith
Replied by JohnSmith on 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
Last edit: 9 years 5 months ago by JohnSmith.

Please Log in or Create an account to join the conversation.

Moderators: JohnSmith
Time to create page: 0.117 seconds
Copyright © 2026 The Xerte Project.
Xerte logo Apereo logo OSI Logo