Results 1 to 3 of 3

Thread: Ajax Tabs Content Script (v 2.2) -noob alert

  1. #1
    Join Date
    Mar 2010
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question Ajax Tabs Content Script (v 2.2) -noob alert

    Ajax Tabs Content Script (v 2.2)

    http://dynamicdrive.com/dynamicindex...tent/index.htm

    I am trying to get this to have a tab change a different DIV tags content than the other tabs but i seem to be lost. All I am able to get it to do is load the changed content when the page loads.

    Is this possible?

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

    Default

    Hmm not sure I understand the question actually. You want the content of a another DIV on the page to change when a tab is clicked on, apart from the content inside the Tab Contents area? In demo 2 on the script page, it already shows an example of hiding one DIV anywhere on the page and showing another when a tab is clicked on.
    DD Admin

  3. #3
    Join Date
    Mar 2010
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    my website has a main section with three divs Right, center, and left.

    Right now using the script from this example I am able to have my tabs change the center div section.

    Now for example of the tabs is called donate. I was wondering if I can setup it up so that when that tab is selected that is changes just the right or left section?

    What I was able to do so far was to get it to change the center section to its content and it also always displayed its external content in either the right or left section.

    Now in thinking upon it this might not be the best visual idea but at this point I am mainly looking to see how it is done.

    I did try using two instances of the script and renames the variables but still was not getting it to do quite what i wanted.

    Another thing to note would be that the right or left section should only change when this tab is selected. Other than that it should show some default content within the DIV tag. I did try the #default setting but that of course just makes that section always show the DIV content.

    I hope I am making more sense tonight as last nights post was after a long day and I closed the submission window twice before i managed to submit so I know there was not a lot of detail.

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
  •