문제

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?

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top