On scroll event
Hello,
I've set an on scroll event of one of my pages to show an alert message, but it's never beign shown. There's also no error in console so it seems on scroll event is never beign fired.
How does this event work?
Thanks
Catch up wih the Appery.io community on our forum. Here you'll find information on the lastest questions and issues Appery.io developers are discussing.
https://forum.appery.io/
Hello,
I've set an on scroll event of one of my pages to show an alert message, but it's never beign shown. There's also no error in console so it seems on scroll event is never beign fired.
How does this event work?
Thanks
Hello! Please install app on device and test. Let us know about result.
Also no alert on device
Please give us your public app link and tell what device/version you use to test.
http://appery.io/app/mobile-frame?src...
I'm testing on a samsung galaxy ace with android 2.2.1 and also on a lg optimus with android 4.0.3
Thank you! We'll test and update.
Sorry, could you clarify on what page you use this event, how we can reproduce this problem?
I've just set this event on newUser page. You can see this page clicking on the "nuevo usuario" button (reload the testing page since I just made this change)
Working on it...
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