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

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

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

On scroll event

Hello! Please install app on device and test. Let us know about result.

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

On scroll event

Also no alert on device

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

On scroll event

Please give us your public app link and tell what device/version you use to test.

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

On scroll event

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

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

On scroll event

Thank you! We'll test and update.

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

On scroll event

Sorry, could you clarify on what page you use this event, how we can reproduce this problem?

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

On scroll event

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)

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

On scroll event

Working on it...

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

Return to “Issues”