I've been porting my backbone app to use jqMobi and jqUI for the interface.
Originally, I wasn't getting anything from my backbone router, I couldn't even output to the console, routes were being completely ignored.
I moved the backbone.init()
function into the ui.js init
function, and the routes are now being triggered, but I get the errors
Uncaught TypeError: Cannot read property 'style' of undefined Uncaught TypeError: Cannot read property 'title' of undefined
from this route
edit: function(id){ alert('triggered'); $.ui.setTitle('temp title'); $.ui.loadContent('edit',false,false,'slide'); new MyApp.Views.EditUser(id); },
$.ui.loadContent('edi',false,false,'slide');
Is "edi" the correct id of the panel you are trying to load?