Results 1 to 4 of 4

Thread: IE7 issue with Tab Content Script (v 2.2)

  1. #1
    Join Date
    Nov 2008
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default IE7 issue with Tab Content Script (v 2.2)

    1) Script Title:
    Tab Content Script (v 2.2)

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

    3) Describe problem:
    Script is installed on this page: http://www.podlett.com/fleece-throw-blankets/

    It works as expected on Firefox 3 & Safari, but when I view it on IE7, the contents of the very first tab 'Description' do not show at all, but other tab content is fine.

    Any ideas?

    Dave

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

    Default

    Your first content's DIV container is missing the class="tabcontent" declaration:

    Code:
    <div id="content" class="tabcontent">
    
      
        <h2><strong>Podlett Fleece Throw Blankets</strong></h2>
    <p><span class="full-image-block ssNonEditable"><span><img src="/picture/podlett%20album%20images%202.jpg?pictureId=1582809&amp;asGalleryImage=true&amp;__SQUARESPACE_CACHEVERSION=1225958861350" alt="" /></span></span></p>
    <ul id="infotabs" class="shadetabs">
    <li><a class="selected" rel="description" href="#">Description</a></li>
    <li><a rel="video"
    "
    "
    DD Admin

  3. #3
    Join Date
    Nov 2008
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Smile

    Thanks so much for your reply DD admin!

    Did you mean that I should add that class to the Entire page content div as shown below in red?

    Or did you mean that the class was missing from the actual first tab container div, as shown in blue below?

    HTML Code:
      <div id="contentWrapper"><div id="content" [COLOR="Red"]class="tabcontent"[/COLOR]>
        
              
        <h2><strong>Podlett Fleece Throw Blankets</strong></h2>
    <p><span class="full-image-block ssNonEditable"><span><img src="/picture/podlett%20album%20images%202.jpg?pictureId=1582809&amp;asGalleryImage=true&amp;__SQUARESPACE_CACHEVERSION=1225958861350" alt="" /></span></span></p>
    <ul id="infotabs" class="shadetabs">
    <li><a class="selected" rel="description" href="#">Description</a></li>
    <li><a rel="video" href="#">Video</a></li>
    <li><a rel="options" href="#">Options</a></li>
    <li><a rel="reviews" href="#">Reviews</a></li>
    <li><a rel="gallery" href="#">Photo Gallery</a></li>
    <li><a rel="buy" href="#">Where To Buy</a></li>
    </ul>
    <!--Break Here-->
    <div style="margin-bottom: 1em; border: gray 1px solid; padding: 10px;"><!--Break Here-->
    <div id="description" [COLOR="Blue"]class="tabcontent"[/COLOR]>
    Many Thanks In Advance for your help!

    Dave

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

    Default

    What I meant was that each of your DIV content containers (#description, #video, etc) should carry a class="tabcontent" CSS class. But actually, that turns out not to be the issue in IE in your case. The issue is that the ID for your first content container- "description" turns out to be a reserved word in IE apparently. Change it to something else in the two places where it is used:

    Code:
    <li><a rel="mydescription" href="#"  class="selected" >Description</a></li>
    and:

    Code:
    <div id="mydescription" class="tabcontent">
    That should do it.
    DD Admin

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
  •