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

Click event not working on Android device

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.

supriya hirurkar
Posts: 0
Joined: Fri Aug 30, 2013 8:57 pm

Click event not working on Android device

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

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

Click event not working on Android device

Hi Supriya,

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

supriya hirurkar
Posts: 0
Joined: Fri Aug 30, 2013 8:57 pm

Click event not working on Android device

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

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

Click event not working on Android device

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

conor roche
Posts: 0
Joined: Wed Mar 25, 2015 6:56 pm

Click event not working on Android device

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?

conor roche
Posts: 0
Joined: Wed Mar 25, 2015 6:56 pm

Click event not working on Android device

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

Alena Prykhodko
Posts: 0
Joined: Tue Apr 09, 2013 7:36 am

Click event not working on Android device

Hi Conor,

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

conor roche
Posts: 0
Joined: Wed Mar 25, 2015 6:56 pm

Click event not working on Android device

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

John Chaudhry
Posts: 0
Joined: Sun Nov 22, 2015 9:25 am

Click event not working on Android device

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

Return to “Issues”