Rafael Martínez
Posts: 0
Joined: Tue Apr 23, 2013 5:19 pm

Click event on list with labels, doesn't work on iPhone

The code generated in Appery.io like this (in HTML):

Code: Select all

                         <!-- labelCAT1 -- 

                             labelCAT1 

                         <!-- labelCAT1K -- 

                             labelCAT1K 

                         span class="ui-icon ui-icon-arrow-r ui-icon-shadow extra" 
                         /span 

and in JS:

$('#j_155 [name="mobilelistitem_11"]').die().live({
click: function() {
if (!$(this).attr('disabled')) {
cargandoInicio();
setVar('localCAT1K', 'j_166', 'text', '', this);
setVar('localCAT1L', 'j_165', 'text', '', this);
Appery.navigateTo('FutbolCAT2', {
transition: 'none',
reverse: false
});

Code: Select all

             } 
         }, 
     }); 

doesn't work on iPhone, the click event is not triggered on Safari.

To make this feature work, it is necessary to add manually onclick="" to the list element.

This code works fine on iPhone:

Code: Select all

                         <!-- labelCAT1 -- 

                             labelCAT1 

                         <!-- labelCAT1K -- 

                             labelCAT1K 

                         span class="ui-icon ui-icon-arrow-r ui-icon-shadow extra" 
                         /span
Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

Click event on list with labels, doesn't work on iPhone

Hello! Please try to use vclick event instead of click.

Rafael Martínez
Posts: 0
Joined: Tue Apr 23, 2013 5:19 pm

Click event on list with labels, doesn't work on iPhone

Great !!, this works well.....but we need change all the events in our project...

Thank you so much.

Return to “Issues”