Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Arthur_T_
New Contributor I
161 Views

Framework7 can't back to previous screen by javascript

I'm newbie on XDK and currently study Framework7.

I'm running XDK ver: 3240 on iMac OSX El Capitan

I define a new page main.html and open it by custom script of a button in index.html

$(document).on("click", ".uib_w_1", function(evt)
    {
        /* your code goes here */
        mainView.router.loadPage('main.html');
    });

a back button in main.html with custom script of:

 $(document).on("click", ".uib_w_2", function(evt)
    {
        /* your code goes here */
        mainView.router.back();
    });

However, when Emulate it, I can open main.html but nothing happen when click on back button in main.html

Anything wrong or anything I need to check for wrong coding?

Tags (2)
0 Kudos
2 Replies
Amrita_C_Intel
Employee
161 Views

Ok! I would recommend using twitter bootstrap. And for further details please see this FAQ: https://software.intel.com/en-us/xdk/faqs/app-designer#best-app-designer...

And they are in the order what we recommend.

Because framework 7 is very strict.

Arthur_T_
New Contributor I
161 Views

In fact, I'm under evaluation on UI framework. I won't choose Bootstrap as that without screen transition animation out of the box. I won't choose App Framework too as that have lot of bugs when work with App Designer (e.g. can't drap controls on right of header, drap controls on left of header not go to left <div> code, etc) So Framework7 left and I found out how to do screen transition animation including 'Back'. Just fail to back in javascript.

Reply