Results 1 to 3 of 3

Thread: pass a third argument in ajax tab content?

  1. #1
    Join Date
    Dec 2006
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question pass a third argument in ajax tab content?

    1) Script Title:
    ajaxtab content
    2) Script URL (on DD):
    http://www.dynamicdrive.com/dynamici...axtabscontent/
    3) Describe problem:
    i would like to pass a third argument in the expandtab link and use it in another tab.
    echo'<a href="javascript: expandtab(\'maintab\', 3)">Editer</a>';

    is there a way to dit it ?

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Your question is unclear. You can have one or more of the links:

    HTML Code:
    <li><a href="external.htm" rel="ajaxcontentarea">Bird</a></li>
    expand a tab in another tab group using its onmousedown event:

    Code:
    <li><a href="external.htm" onmousedown="expandtab('tabs2', 3);" rel="ajaxcontentarea">Bird</a></li>
    This will carry out both actions virtually simultaneously.

    Or, you can place the expandtab link on an external page for use in the current (or any) tab group, just put something like this on whichever external page that you want it to appear on:

    HTML Code:
    <a href="javascript: expandtab('maintab', 2)">Select 3rd tab of "maintab"</a>
    This will make it available when that external page is loaded into a tab.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. #3
    Join Date
    Feb 2007
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Extra variables

    Concerning Tabcontent script:

    I want to place a nest of If Else statements in a div section of the tabcontent script to print a specific INCLUDE file that meets the condition in the If Else statements. A variable would need to be passed from a link in one tab to the tab linked to to determine this condition and then to output the INCLUDE file. How would I pass a variable from one tab to another for analysis by an IF ELSE set of statements?

    The only way I can see to do this is if somehow other variables can be added and passed in this code:
    expandtab('maintab', 3)

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
  •