Open full view…
Dynamic Side-Panel with button doesn't fire "onClick" event
ale_carsa
Thu, 16 Feb 2017 14:20:13 GMT
Hi all,
i have a side-panel with dynamic content that changes on the base of which view is selected in a certain moment.
This side-panel contains some buttons, but since i load the content dinamically, the "onClick" event doesn't fire-up anymore.
side-panel loading code:
myApp.onPageInit('*', function(page){
if(mainView.activePage.name === 'index-1'){
console.log("OnPageInit: index-1");
$$.get('views/leftPanel_login.html', {}, function(data){
$$('.left-panel-view-content').html(data);
});
}
From the source code the html document contains the right HTML code, but i can't understand where the problem is...