1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

"tabs" js Class and data-history

Discussion in 'XenForo Development Discussions' started by Bugfix, Aug 19, 2015.

  1. Bugfix

    Bugfix Member


    XF provides a possibility to add tabs. (XenForo.Tabs.prototype)
    For example:
    [How To]Adding Tabs to your pages

    Is it possible to always reload the tabs on click? The content of a tab should not be cached.
    I found the attribute "data-history" but it has no effect on caching of content :(

  2. Chris D

    Chris D XenForo Developer Staff Member

    There isn't anything built in that would do that.

    IIRC data-history is not actually implemented but if it was I think the intention was for it to push browser history each time a tab is clicked (so clicking back would take you to the last tab you clicked on, rather than the last page before the profile).

Share This Page