Page 2 of 2

On scroll event

Posted: Tue Jul 30, 2013 4:13 pm
by Kateryna Grynko

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


On scroll event

Posted: Wed Jul 31, 2013 8:55 am
by Manuel Menéndez Román

It works! Thanks!