Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8707299
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T03:50:13+00:00 2026-06-13T03:50:13+00:00

I am using amplify.store to store a variable for the current tab clicked on

  • 0

I am using amplify.store to store a variable for the current tab clicked on a page, when I go the another page (the history version of that page) it stays on the same clicked tab which is the desired behavior. I am running into an issue though because the amplify.store is retained across sessions.
I am currently using the current code to store the val.

amplify.store("CurrentTab","SomeVal");

I try clearing the amplifystore when clicking on the button for the menu, however I am not sure why it doesn’t work. Below is my clear command

    <script>
    $("#hreftothelink").click(function () {
        amplify.store("CurrentTabH",null);
        amplify.store("CurrentTab",null);
        someViewModel()
                .tabs('select','someVal');
    });
    </script>

Is there another way that anyone can think of to clear the val or pass a variable based on what tab that is currently selected?

Note: Using a timed destroy of the amplify.store would not work since there is a variable amount of time someone can be on the tab.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T03:50:14+00:00Added an answer on June 13, 2026 at 3:50 am

    I added this to the click and I was able to clear the value.

    var CurrentTabH = amplify.store("CurrentTabH");
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

When using amplify.request , I'd like to use amplify.store to persist the results from
Using CRM 4, I have an entity form that contains a tab with an
Using MVC2 I have an AJAX form which is posting to a bound model.
Using Delphi 2010. I am looking for (possibly) a function or procedure which can
Using WebViewBrush I can render web page content (it's screen shot) to e.g. Rectangle
Using MVVM. I have a DataTemplate which I am using to display an expander
Using Yii, I want to delete all the rows that are not from today.
Using EF Code First I have an model object that has multiple properties that
Using android 2.3.3, I have a background Service which has a socket connection. There's
Using SSRS 2008 R2 I have a background process that dynamically generates RDL for

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.