question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Feature request: 'Ajax Pages' for Tabs

See original GitHub issue

As mentioned in a issue and in various questions on the forum;

It seems there are more people (besides me) looking for a way to load ‘Ajax Pages’, to leverage for example Template7. In my current solution using the $$('.tab').on('show', function(){ }) event I have to overcome a lot of “issues” which already have been implemented within F7 (which is awesome, did I mention that 😃), it feels a bit like I am reinventing the wheel. Therefore this request.

Current “issues” that we need to overcome;

  • handling the whole request via e.g. mainView.router.load(options)
    • to leverage Template7 etc.
  • caching / reloading
  • page “transitions” e.g. showing the myApp.showIndicator();
  • etc.

Issue Analytics

  • State:closed
  • Created 9 years ago
  • Reactions:1
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
ptonercommented, Nov 22, 2016

I’m sure someone could come up with a more elegant permanent solution.

I’m using the Material scrolling tabbar. I haven’t tested this with anything else.

Using 1.5.0 if you change lines 7552-7554 from

                if (clicked.hasClass('tab-link')) {
                    isTabLink = true;
                    app.showTab(clickedData.tab || clicked.attr('href'), clicked);
                }

to

                if (clicked.hasClass('tab-link')) {
                    isLink = true;
                }

It’ll force a tab-link to act like a normal link. Which means if you’re using the default ajax links the tab links start acting like any other link. If you throw the “no-animation” class on the tab link you can barely tell the difference between it and the non-ajax tabs. Hitting the back button looks slightly off but I can live with it for now.

I should also note that this relies on the HTML having an identical set of tabs at the top of each page and manually marking the active tab on the server side (or any other manual way).

0reactions
nolimits4webcommented, Jan 27, 2018

It is possible in v2

Read more comments on GitHub >

github_iconTop Results From Across the Web

Feature request: 'Ajax Pages' for Tabs · Issue #412 - GitHub
#280 Pages in the Tab-Bar example How to separate each tab into its own page Is there any way to refresh the ......
Read more >
Responsive Tabs - Fetch external content via Ajax
Responsive Tabs allows you to set tabs linking to external documents which can be web pages, XML or json documents. The tab content...
Read more >
How we captured AJAX requests from a website tab ... - Moesif
Learnings on how to capture AJAX requests from any website calling an API while building a Chrome Extension.
Read more >
How to normalize the ajax call for multiple tabs? - Stack Overflow
I found that if user open the application in multiple tabs then each tab fire the request to server for the new notification/message...
Read more >
Feature Request: Browser Tab Notification | WordPress.org
Just seen at a shop where I've put some goods in the basket, opened a new tab for checking other page, as soon...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found