Results 1 to 5 of 5

Thread: Ajax Tabs Content Script

  1. #1
    Join Date
    Jun 2008
    Posts
    27
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Ajax Tabs Content Script

    1) Script Title:

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

    3) Describe problem:

    It works well in html page but when I kept it in ASP page the links are not opening in the container...instead they open the external file itself.

    Please help me with it, if anybody can fix it.

    Thanks in Advance
    pankaj

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

    Default

    It shouldn't matter what the extension of your pages being retrieved/shown. Please post a link to the page on your site that contains the problematic script so we can check it out.
    DD Admin

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

    Default

    Thanks but I figured out that since I included a ASP file in the container inside the main page it changed the other properties and was causing problem......

    Anyways but still one more thing.....It remembers which tab is selected and again shows that same tab contents on reload....but I want to show first tab only by default but its not happening....

    Can you help in that too??

    TIA
    pankaj

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

    Default

    Inside the initialization code, make sure setPersist() is set to false:

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

  5. #5
    Join Date
    Jun 2008
    Posts
    27
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thanks buddy... I got it.....

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
  •