Question

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);

    },
Was it helpful?

Solution

$.ui.loadContent('edi',false,false,'slide');

Is "edi" the correct id of the panel you are trying to load?

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top