extjs - sencha touch 2 history.back() does not work? -


i working sencha touch 2 mvc application. in app.js file have no launch() method ,

controllers: ['homecontroller'], 

and homecontroller routes

       routes: {         '': 'viewhomepage',                       //1st page         'ap': 'viewcontactpage',                  //2nd page         'ap/:id': 'viewcontactpagebyid'           //3rd page        //others     } 

in 2nd , 3rd page have button

xtype:'button', listeners: {                     tap: function () {                         history.back();                     }                 } 

now problem history.back() not works in case of page2. works incase of page3.

if special case how restart application.

and if not works in case of mvc soln? or there other way this?

sorry, chris, history.back() can made work sencha touch 2 app. long controller uses redirectto(url), standard history.back() function expected.

so if in controller redirect current url another, using history.back() after redirection return original url.


Comments

Popular posts from this blog

jquery - Invalid Assignment Left-Hand Side -

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -