Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8809939
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T02:59:58+00:00 2026-06-14T02:59:58+00:00

Just started exploring Twitter’s Bootstrap and I like what I am seeing. However I

  • 0

Just started exploring Twitter’s Bootstrap and I like what I am seeing. However I have a query over how to implement Tabs that contain an iFrame. I know iFrame’s are awful, but when used correctly are useful for displaying different types of data.

I have experience of jQueryUI Tabs which allows me to display iFrame’s inside of tabs. However I cannot find any documentation to do the same with Bootstrap.

From a jQueryUI perspective I have done this in the past:

<div id="tabs">
  <ul>
    <li><a class="tabref" href="#tabs-1" rel="page1-iframe.html">Page 1 Title</a></li>
    <li><a class="tabref" href="#tabs-2" rel="page2-iframe.html">Page 2 Title</a></li>
  </ul>
  <div id="tabs-1"></div>
  <div id="tabs-2"></div>
</div>

The above is more advanced than standard jQueryUI Tab implementation.It allows me to off-set the load of the iFrame until the tab is selected by the user which is best way to do it when loading numerous pages etc.

However, I cannot see a similar way with Bootstrap.

Looking for pointers here guys.

Cheers
Nick

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T02:59:59+00:00Added an answer on June 14, 2026 at 2:59 am

    Below is a solution using a custom data-attribute and some jQuery. Or look at the working jsFiddle of the same solution for Bootstrap “LazyLoading” iFrames.

    <div class="container">
        <div class="row">
            <div class="span12">
                <ul class="nav nav-tabs" id="myTabs">
                  <li class="active"><a href="#home" data-toggle="tab">Home</a></li>
                  <li><a href="#dpa" data-toggle="tab">DPA</a></li>
                  <li><a href="#twon" data-toggle="tab">Antwon</a></li>
                </ul>
    
                <div class="tab-content">
                  <div class="tab-pane active" id="home">
                      <p>test</p>            
                    </div>
                  <div class="tab-pane" id="dpa" data-src="http://www.drugpolicy.org/">
                      <iframe src=""></iframe>
                    </div>
                  <div class="tab-pane" id="twon" data-src="http://player.vimeo.com/video/37138051?badge=0">
                      <iframe src="" width="500" height="203" frameborder="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe> <p><a href="http://vimeo.com/37138051">ANTWON ♦ HELICOPTER</a> from <a href="http://vimeo.com/tauszik">Brandon Tauszik</a> on <a href="http://vimeo.com">Vimeo</a>.</p>
                    </div>
                </div>
            </div>
        </div>
    </div>​
    
    <script>
    $('#myTabs').bind('show', function(e) {  
    
        // identify the tab-pane
        paneID = $(e.target).attr('href');
    
        // get the value of the custom data attribute to use as the iframe source
        src = $(paneID).attr('data-src');
    
        //if the iframe on the selected tab-pane hasn't been loaded yet...
        if($(paneID+" iframe").attr("src")=="")
        {
            // update the iframe src attribute using the custom data-attribute value
            $(paneID+" iframe").attr("src",src);
        }
    });
    </script>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I just started exploring Scala in my free time. I have to say that
I have just started exploring Backbone.js. Upon submission of a form I would like
I am a newbie just started exploring Grails so that I can recommend this
I have just started exploring TWILL . Twill is an amazing scripting language for
I have just started exploring SpringMVC and logback. This is my controller, (the only
I have just started this week in exploring Android Open GL ES and related
I have just started exploring Couchbase Mobile for Android and have been impressed with
We have just started exploring what required for internationalizing our applications. One thing I'm
Just started mongo and started having issue with querying already. i have a collection
Just started exploring Cocoa so pretty much a total noob. I've written a very

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.