Page 1 of 1

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

Posted: Thu Jun 13, 2013 3:48 pm
by Rafael Martínez

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

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

Posted: Thu Jun 13, 2013 3:50 pm
by Maryna Brodina

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


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

Posted: Thu Jun 13, 2013 4:01 pm
by Rafael Martínez

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

Thank you so much.