In one application of Xamarin I inserted an html page where I entered:
<Div class="item itemClick active">
<Object class="image-responsive center-block" type="image / svg + xml" data="home_ic_report_menu.svg" date-command="commandFirst"></object>
<Img data-command="commandFirst" src="vuota.png" class="menuitem" />
</ Div>
$.each(EnabledFeatures, function (e) { // cycling items
divCarouselMenu.append('<div class="item itemClick"><object class="image-responsive center-block" type="image / svg + xml" data="home_ic_' + this.Icon + '.svg "date-command="' + this.ClickCommand + ' "style="z-index=0"></object><img data-command="' + this.ClickCommand + ' "src=" vuota.png "class=" menuitem "/></ div>');
});
based on the data that goes through the application and to click:
$(".menuitem").on('click', function() {
var cmd = $(this).attr("data-command");
Native('menuCommand', cmd);
});
in such a way that in the event there is the right operation.
Emulation (on the browser) funzionane fine, but when I start the application on the mobile (both ios that Android) the image you see, but do not click the event takes place. Something wrong? Because with the emulation works and then with the application does not work?
Many thanks to those who will respond to me.