Results 1 to 3 of 3

Thread: When Page reloads the it does not go back to selected tab

  1. #1
    Join Date
    Jun 2009
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default When Page reloads the it does not go back to selected tab

    1) Script Title: Ajax Tabs Content Script (v 2.2)

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...tent/index.htm

    3) Describe problem:

    The menu does not reset on page load. Please go to:

    http://www.halloweenandcostumes.com/...r-costume.aspx

    The menu is down on the page under the picture. Once on the page please select Tab 2: Complete Your Look.

    Once you have done this, go to this page:
    http://www.halloweenandcostumes.com/...e-costume.aspx

    As you can see Tab 2 still comes up. The Complete Your Look section is showing.

    It does not go back to Tab 1 on new page load. How do I make it reload on tab 1?

    By the way I LOVE Dynamic Drive! The site is wonderful! I have recommended it to many! Thank you for your time.
    Last edited by Snookerman; 06-23-2009 at 07:49 AM.

  2. #2
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    This is normal, as you have persistence of the last viewed tab enabled right now. Try turning it off:

    Code:
    <script type="text/javascript">
    
    var countries=new ddtabcontent("countrytabs")
    countries.setpersist(false)
    countries.setselectedClassTarget("link") //"link" or "linkparent"
    countries.init()
    
    </script>
    DD Admin

  3. #3
    Join Date
    Jun 2009
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    THANK YOU!!! That works great!

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •