framework7

Open full view…

My code isn't works in full size on iPhone

marcoscontreras
Mon, 29 May 2017 09:04:35 GMT

I've a simple code to show a notification (I'm learning framework at the moment), when I see my aplication in my website works well but if I add to my initial screen and run the example, isnt works (I can see my index but, anything more works). My code example: $$("form.ajax-submit").on("form:success",function(e){ var xhr = e.detail.xhr; var data = e.detail.data; myApp.addNotification({ title: 'My Awesome App', subtitle: 'New message from John Doe', message: 'Hola '+data, media: '<img width="44" height="44" style="border-radius:100%" src="http://lorempixel.com/output/people-q-c-100-100-9.jpg">', onClose:function(){ mainView.router.loadPage('pages/about.php'); } }); });