1
I have a question about framework7, how do I run the scripts after dynamically loaded 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 record the events on the button, someone knows why?