Results 1 to 8 of 8

Thread: [DHTML] Tab Control with XP Look

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

    Default [DHTML] Tab Control with XP Look

    Removed as it's considered poor code by Twey.
    Last edited by nmendes; 05-30-2007 at 08:48 AM.

  2. #2
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    The content becomes inaccessible without Javascript enabled.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

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

    Default

    Quote Originally Posted by Twey View Post
    The content becomes inaccessible without Javascript enabled.
    But don't most people have JavaScript enabled anyho? I thought it was just the sorta thing that is on by default, and no one really cares.

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

    Default

    Well, yes, many scripts have that disadvantage, but the good ones don't. However, you could make it so that all of the content was displayed at once if javascript were disabled or so that each tab would be a link to a page that had the content on it. The links wouldn't fire if javascript was enabled. That sort of thing.

    For something like this, I think it might be best just to have all of the content visible if javascript were disabled and have the tabs only appear in the first place if javascript is on.
    - John
    ________________________

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

  5. #5
    Join Date
    May 2007
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Hi,

    Forgot to mention on that js is required for it to work.

    I did it for a site I'm developing that requires js so I was not worried with javascript beeing disabled.

    I decided to post it here as I thought it may be useful for people who are looking for something like this.

    Thanks for your comments!

  6. #6
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    I did it for a site I'm developing that requires js so I was not worried with javascript beeing disabled.
    That's a very poor site.
    But don't most people have JavaScript enabled anyho? I thought it was just the sorta thing that is on by default, and no one really cares.
    Yes, in much the way that most people don't use wheelchairs, so who cares if it's impossible to get into your place of work using one? Just as a well-designed building will cater to people other than single men with fully-functioning bodies and 20/20 vision, a well-designed site will cater to things other than the very latest or most common browsers with all features enabled. Remember, that includes screenreaders and the like -- these usually don't handle Javascript very well.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  7. #7
    Join Date
    Aug 2005
    Posts
    971
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    nmendes: you don't have to remove it because it is a poor code(tell me which isn't?). It still can be useful for a lot of other people and a lot of tweaking can be done. Twey just meant it is not the best code but he did not mean it was very very bad. So please repost!!

  8. #8
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,156
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    His comment about a very poor site was in general about one that requires javascript to view the content. It may be a 'good' site, but this simply means that if the user doesn't have javascript or javascript isn't enabled, the whole site will fail. A fallback should be included.
    Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

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
  •