Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

On scroll event

Hi Manuel,

Scroll event doesn't fire for page. Instead, you need to use the events scrollstart, scrollstop (http://api.jquerymobile.com/category/...) but these events won't work on device also.

You should use them for window. Create JavaScript asset with the following code:code$(window).on({
scrollstop: function() {
if ($.mobile.activePage.attr("dsid") == "newUser") { //use this code only for screen with name "newUser"
alert("scroll");
}
}
});/code

Manuel Menéndez Román
Posts: 0
Joined: Sat Jun 22, 2013 9:12 am

On scroll event

It works! Thanks!

Return to “Issues”