Coder Social home page Coder Social logo

Comments (14)

BelinChung avatar BelinChung commented on May 17, 2024

When I navigate to the third tab and click logout button (content-link to login.html),The login page has been load to the first tab content and the screen stay in the third tab.the right thing is the screen should change and stay in the first tab.what should I do?

from framework7.

nolimits4web avatar nolimits4web commented on May 17, 2024

@BelinChung i can't say like that. It will be good to see live example, or JSFiddle, or maybe video screencast of problem

from framework7.

nolimits4web avatar nolimits4web commented on May 17, 2024

@matthewball do you still have your issue?

from framework7.

BelinChung avatar BelinChung commented on May 17, 2024

@nolimits4web There are a live example in http://m.hiliaox.com/

That is a lot to follow so here it is again:
login -> navigate to "setting" tab -> click "logout" button

The login.html has been load in "OurView" content,But the screen stay in setting tab.

from framework7.

nolimits4web avatar nolimits4web commented on May 17, 2024

Everything is correct. Because you load page in inactive tab, you just need to switch tab manually:

$$('.logout-button').on('click', function(){
  //Emulate click on first tab-link to switch tab
  $$('.tabbar .tab-link').eq(0).click();
});

from framework7.

nolimits4web avatar nolimits4web commented on May 17, 2024

But you should probably do that not on login-button click, but in your Confirm callback

from framework7.

BelinChung avatar BelinChung commented on May 17, 2024

@nolimits4web Thanks.
Maybe @matthewball has the same question as I do.

from framework7.

BelinChung avatar BelinChung commented on May 17, 2024

@nolimits4web

$$('.tabbar .tab-link').eq(0).trigger('click');
//$$('.tabbar .tab-link').eq(0).click();

I found it does not work on touch devices. :(

from framework7.

nolimits4web avatar nolimits4web commented on May 17, 2024

Ok, you can do it then like that:

$$('.logout-button').on('click', function(){
  //Emulate click on first tab-link to switch tab
  $$('.tabbar .tab-link').removeClass('active');
  $$('.tabbar .tab-link').eq(0).addClass('active');
  $$('.tabs .tab.active').removeClass('active');
  $$('.tabs .tab').eq(0).addClass('active');
});

from framework7.

matthewball avatar matthewball commented on May 17, 2024

For me, I am still having issues with the panels not linking after visiting another page.

from framework7.

nolimits4web avatar nolimits4web commented on May 17, 2024

@matthewball That is somewhere problem on your side, because it can't just stop working. And i can't help you much because you don't post any example ;) As you may see in kitchen sink and in all examples it works fine :)

from framework7.

matthewball avatar matthewball commented on May 17, 2024

Sorry, I have been waiting for my app to be published on app store but you can see for yourself here:
image

from framework7.

nolimits4web avatar nolimits4web commented on May 17, 2024

Ok, i opened it. So everything seems to be works great. What i do:

  1. From Home tab i go to Firmwares tab
  2. I click, for example iOS 5,
  3. On iOS 5 page i click Back link in navbar
  4. Then i switch to Home tab again
  5. I switch to Firmwares again
  6. And links here are still working as expected
    Where is the problem?

from framework7.

nolimits4web avatar nolimits4web commented on May 17, 2024

Closing as seems to be problem is gone

from framework7.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.