Software Archive
Read-only legacy content
17061 Discussions

Framework7 can't back to previous screen by javascript

Arthur_T_
New Contributor I
385 Views

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?

0 Kudos
2 Replies
Amrita_C_Intel
Employee
385 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.

0 Kudos
Arthur_T_
New Contributor I
385 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.

0 Kudos
Reply