Page 3 of 4

Click event not working on Android device

Posted: Tue Oct 01, 2013 5:26 pm
by Maryna Brodina

Hello! Looks like you have List items, not radiobuttons. We can't reproduce it. Please add this code on List item Click event:
prealert($(this).text());/pre
and delete all other events to see is there an alert or not.
One more thing - your service returns thousands of records and you map all of them to List item and it's really slows down the app. Perhaps you should change your app logic.


Click event not working on Android device

Posted: Wed Oct 02, 2013 8:49 pm
by supriya hirurkar

Hey Marina, Yes, I wanted to change my logic which I did. The alert is fine and gives me the name but it just does not show the detailed part. Also, I have some issues with scrolling, I tried various ways of making it work. Just now, I tried
$(window).scrollTop(0) , still no results. Your help on this will be appreciated. Thanks


Click event not working on Android device

Posted: Thu Oct 03, 2013 10:10 am
by Kateryna Grynko

Hi Supriya,

The following code should be working:
code$(window).scrollTop(0); /code
Where do you use it?


Click event not working on Android device

Posted: Thu Oct 03, 2013 8:03 pm
by supriya hirurkar

I am writing it on a page load, I have 5 collapsible blocks and I just can not scroll down with this and cant see what is there in last 2 blocks


Click event not working on Android device

Posted: Thu Oct 03, 2013 8:54 pm
by Maryna Brodina

Hello! Do you want to scroll up or down? If you want to scroll down try this code:
pre$(window).scrollTop($(document).height()-$(window).height());/pre
on page Show event


Click event not working on Android device

Posted: Fri Apr 10, 2015 5:02 pm
by conor roche

I also have this problem both on android and ios, this happens for click events of both radio buttons and checkboxes. They work fine on desktop but not on mobile browser or the hybrid app webviews. The workaround suggested of using the value change event isn't good for my use case. What i want is that when a user clicks the radio button it opens a confirmation popup before changing the value of the checkbox/radio. To use the value change event workaround for this use case would mean that on value change, show the confirmation, if user says no then set a flag to ignore the next value change, change the value back to the original and close the popup. this doesn't look great to an end user. Is there no way to make the click events work on mobile?


Click event not working on Android device

Posted: Fri Apr 10, 2015 5:36 pm
by conor roche

note i have tried manually adding a click event handler to the sibling label and parent span as suggested on some stackoverflow issues for jqm but that event is still not fired on mobile even if fired on desktop


Click event not working on Android device

Posted: Mon Apr 13, 2015 7:59 am
by Alena Prykhodko

Hi Conor,

Please provide us with a public app link (http://devcenter.appery.io/documentat...) and steps to test.


Click event not working on Android device

Posted: Mon Apr 13, 2015 8:15 am
by conor roche

Hi Alena, I stopped using checkboxes and radios and replaced them with buttons styled to look the same as radio and checkboxes and that works fine on ios and android for me, i would have to revert to an earlier version


Click event not working on Android device

Posted: Tue Nov 29, 2016 7:40 pm
by John Chaudhry

Hi Appery,

This is still a problem. I have just set up a simple page using radio buttons. It works on the emulation environment but not on an Android.

The symptom is:

  • when I click on a button a bit of JS is run which a) gives an alert b) sets a storage variable.

    These do not happen.

    There is nothing fancy about my code.

    Please advise.

    Cheers,

    John