Results 1 to 8 of 8

Thread: Tab Content Script Issues in IE - Tabs Disappearing

  1. #1
    Join Date
    Feb 2007
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Tab Content Script Issues in IE - Tabs Disappearing

    1) Script Title: Tab Content Script

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

    3) Describe problem:
    I have set up the Tab Content script for the services page at http://www.insight-nyc.com/new/services.html. Everything is working perfectly in Firefox, but in IE, when the tabs are clicked, some of the other tabs disappear! I have tried and tried to find the issue here but it is beyond me.

    Also it should be noted that on pages where i have the tab dynamically selected by <body onload=...>, the tabs are lost when the onload event executes. Here is a link to a page with the onload event included: http://www.insight-nyc.com/new/srvc-...t-charter.html

    Can any tabs script genius help with this problem? I greatly appreciate it!!!

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

    Default

    I haven't quite figured out the disappearing tab problem in IE yet. It has something to do with the layout of your page, that I'm pretty sure. I'll poke around some more.

    Regarding dynamically selecting tab, it seems to be working except the disappearing tab issue in IE again. However, you actually don't need to use onload="" to set a tab to be selected by default. The declaration class="selected" will do that:

    Code:
    <li class="selected"><a href="#" rel="tcontent1">Tab 1</a></li>
    BTW, please note that your page is currently in violation of our usage terms, since the credit notice doesn't appear inline on the page. Please reinstate the credit notice:

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

    Default

    Thanks so much for your quick reply! I really love the script and I am hoping I can make it work. This is for a high-profile client of mine so I've been going crazy trying to get it to work. I might have lost the credit notice since I've been going back and forth with so many code changes but I just went back and put it in again on all the pages, sorry about that!

    It sounds like you have seen this issue before - perhaps since we have an active example of it there is some way I can help to troubleshoot it? Let me know if you would like me to make any code changes to see if we can isolate the problem, and hopefully we can turn this lemon into lemonade!

    Also shoot me a message if you would like to work on this over IM or email then we can post the solution here.

    Thanks again...

    Paul

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

    Default

    Ah, ok, finally found the problem. Inside the HTML for your tab UL:

    Code:
    <ul id="maintab" class="shadetabs">
    <li class="selected"><a href="#" rel="Core"><img src="test2_files/srvc-tabs-core-services-up.gif" alt="Core Services" name="coreservices"  border="0" height="29" width="146"></a></li><li class=""><a href="#" rel="Tours"><img src="test2_files/srvc-tabs-special-tours-up.gif" alt="Special Tours" name="specialtours"  border="0" height="29" width="144"></a></li><li class=""><a href="#" rel="Transportation"><img src="test2_files/srvc-tabs-transportation-up.gif" alt="Transportation" name="transportation"  border="0" height="29" width="163"></a></li><li class=""><a href="#" rel="Trips"><img src="test2_files/srvc-tabs-trips-getaways-up.gif" alt="Trips and Getaways" name="tripsgetaways"  border="0" height="29" width="170"></a></li><li class=""><a href="#" rel="Events"><img src="test2_files/srvc-tabs-events-up.gif" alt="Events" name="events"  border="0" height="29" width="94"></a></li>
    </ul>
    Remove the code in red. Basically in these two cases you have a name attribute with the same value as the corresponding rel attribute within the same tag (well, the <a> associated with the image anyway). This is causing IE to think that the tab is part of the tab content to contract/ extract. In fact, ideally, you should just remove the name attribute from all links above to avoid a clash from occuring again.

  5. #5
    Join Date
    Mar 2007
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Ajax Tabs Content noT working on IE 7

    Hi,

    I use this script on my website at http://ue328.webexcellence.net/ . on Firefox, Opera, and Netscape browsers It work great!.
    But unfortunately, It doesn't work at IE 7 . Any suggestion please?

    Here is the page that uses Ajax tab content :
    http://ue328.webexcellence.net/network.php
    Try use IE7 and Click on the Country flag.

    Please advise.

    Thank you

  6. #6
    Join Date
    Mar 2007
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Problem with IE7

    I'm using the Tab Content Script on a page I'm designing. It works on FF. But on IE7, when I click on a tab, I get a warning box, stating that there's an error. Then, the browser goes to the external.html associated with that tab.

    Line: 41
    Char: 1
    Error: Access is denied
    Code: 0

    I assume this in line 41 of the ajaxtabs.js file, which reads:
    page_request.send(null)

    Any ideas?
    Thanks, Matt

  7. #7
    Join Date
    Mar 2007
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    nukecpower,
    I went to your site with IE7. It seems to work fine. Good job!
    Peace, Matt

  8. #8
    Join Date
    Mar 2007
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by mhenderson View Post
    I'm using the Tab Content Script on a page I'm designing. It works on FF. But on IE7, when I click on a tab, I get a warning box, stating that there's an error. Then, the browser goes to the external.html associated with that tab.

    Line: 41
    Char: 1
    Error: Access is denied
    Code: 0

    I assume this in line 41 of the ajaxtabs.js file, which reads:
    page_request.send(null)

    Any ideas?
    Thanks, Matt
    Nevermind. I'm going to use Tab Content Script instead. It seems seaier to configure.
    Thanks anyway, Matt

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
  •