I'm having a question about framework7, how do I run the scripts after dynamically loading the page, example:
mainView.router.loadPage("pagina.html)
[script que registram eventos nos botoes da pagina acima]
$("#capturarFoto").unbind().bind("click",function () {
navigator.camera.getPicture(onSuccessCapturaImagem, onFailCapturaImagem,
{
quality: 50,
correctOrientation: true,
encodingType: navigator.camera.EncodingType.JPEG,
destinationType: navigator.camera.DestinationType.FILE_URI
});
});
$("#procurarFoto").unbind().bind("click",function () {
navigator.camera.getPicture(onSuccessCapturaImagem, onFailCapturaImagem,
{
destinationType: navigator.camera.DestinationType.FILE_URI,
sourceType: navigator.camera.PictureSourceType.PHOTOLIBRARY,
encodingType: navigator.camera.EncodingType.JPEG,
correctOrientation: true
}
);
});
When I do this it does not log events on the button, does anyone know why?