Results 1 to 5 of 5

Thread: Tabcontent script with external pages

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

    Default Tabcontent script with external pages

    1) Script Title: Tab Content Script

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

    3) Describe problem: I want one of the tabs to open an external page, like an iframe would. The script refers me to the "Ajax Tabs Content script" (http://www.dynamicdrive.com/dynamici...tent/index.htm) -- but I'm confused on how to exactly combine the two to function.

    I appreciate anyone's help. Thanks.

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

    Default

    Combining the two scripts to archive the effect of being able to display both inline content and external pages would be messy. The simpliest solution I can think of is just to stick with the original Tab Content script, and for the desired tab content, embed an iframe inside it:

    Code:
    <iframe src="http://mysite.com"></iframe>
    instead of normal inline content.

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

    Default

    Thanks. I seemed to know the answer when I asked the question, since I even said...

    like an iframe would
    But for whatever reason I didn't even consider it.

    In any case, thanks for your help.

  4. #4
    Join Date
    Oct 2005
    Posts
    86
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    I am using the tabcontent script and including the inline content is a must for me. However, I would like one of the contect to bring up an external page within the same domain.

    It is possible to use the tabcontent and find a way to link to that external page

    If I am asking the same quesiton that is answerred above, then how do I embed this iframe

    Here is correct like this.

    .<li><a href="#" rel="<iframe src="http://mysite.com"></iframe>">gifts</a></li>

    Thank you.
    Last edited by vanbao; 02-23-2008 at 04:46 AM.

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

    Default

    Hi Vanbao:
    The solution to your question seems to be exactly what I had posted above already, if you're talking about Tab Content script that is. Basically, for one of the Tab Content DIVs, you would simply insert an IFRAME:

    Code:
    <div style="border:1px solid gray; width:450px; margin-bottom: 1em; padding: 10px">
    
    <div id="country1" class="tabcontent">
    Tab content 1 here<br />Tab content 1 here<br />
    </div>
    
    <div id="country2" class="tabcontent">
    <iframe src="http://mysite.com"></iframe>
    </div>

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
  •