This is what I have in my JS file // Initialize your app var myApp = new Framework7(); // Export selectors engine var $$ = Framework7.$; $$('.submitLink').on('click', function () { myApp.showPreloader('Updating ...') setTimeout(function () { myApp.hidePreloader(); }, 2000)});
the example from kitchen-sink is working fine on a local HTML, but when I package that into a JSP and deploy the code on the application server the preloader does not appear. On the browser console I am getting this JS exception - Uncaught TypeError: Cannot read property 'f7View' of undefined
It seems like you have not initialized views or haven't Main view. Do you have such? Can you show your App's HTML structure and JS?
Or this error also could happen if you try to initialize none existing View