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 1 month 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 Log in or Create an account to join the conversation.

Scroll function 7 years 1 month ago #4331

  • jjs
  • jjs'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 Log in or Create an account to join the conversation.

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

Search