SitePoint Sponsor

User Tag List

Results 1 to 8 of 8
  1. #1
    SitePoint Member
    Join Date
    May 2011
    Posts
    13
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    jquery content slider (javascript disabled alternative)

    I am currently working on a version of a jquery content slider at:

    http://webdeveloperplus.com/jquery/f...ing-jquery-ui/

    The code is great and I have got it working with 3 tabs (thats all I need) but my issue is getting it to work when JavaScript is disabled in the browser (for disability reasons).

    Could anybody help me to get it working so the links are still possible to click on when JavaScript is disabled?

    Many thanks for looking into my problem.

  2. #2
    It's all Geek to me silver trophybronze trophy
    ralph.m's Avatar
    Join Date
    Mar 2009
    Location
    Melbourne, AU
    Posts
    24,203
    Mentioned
    456 Post(s)
    Tagged
    8 Thread(s)
    It's great that you are keen to have something that's accessible with JS off, but it may be more trouble than it's worth to try to reform that script. Here's a gallery that degrades nicely without pulling the ball and chain of jQuery along behind it:

    http://domscripting.com/domsters/photos.html

    It could be styled to look like the one you linked to.

  3. #3
    SitePoint Member
    Join Date
    May 2011
    Posts
    13
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi Ralph

    Many thanks for your reply. Yes I think it is important to consider non js browsers (currently have over 1200 views a month without js enabled). I think I have managed to do it using document.writes for the tabs on the right then repeat the code in the noscript tag (changing the url to the actual page). So if JS disabled, you still get the tabs but the links go to the page. This seems to work nicely and gets round the problem.

    The link you sent would not work as I am not using it as an image viewer, I have had to remove the images and replace with html content and it is also fluid depending on browser width.

    Thanks again

  4. #4
    It's all Geek to me silver trophybronze trophy
    ralph.m's Avatar
    Join Date
    Mar 2009
    Location
    Melbourne, AU
    Posts
    24,203
    Mentioned
    456 Post(s)
    Tagged
    8 Thread(s)
    I see. Glad you found something that works.

    Quote Originally Posted by sdagger View Post
    currently have over 1200 views a month without js enabled
    Wow, that's a lot. How many visits in total do you get per month?

  5. #5
    SitePoint Member
    Join Date
    May 2011
    Posts
    13
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    About 186,000. 0.54% have JS disabled.

  6. #6
    It's all Geek to me silver trophybronze trophy
    ralph.m's Avatar
    Join Date
    Mar 2009
    Location
    Melbourne, AU
    Posts
    24,203
    Mentioned
    456 Post(s)
    Tagged
    8 Thread(s)
    Interesting. If I may ask, what kind of site is it? Or, to put it another way, what's the focus of its content?

  7. #7
    SitePoint Member
    Join Date
    May 2011
    Posts
    13
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    It's a financial site. The banner will be used to promote products. Sorry I cannot say more than that.

  8. #8
    It's all Geek to me silver trophybronze trophy
    ralph.m's Avatar
    Join Date
    Mar 2009
    Location
    Melbourne, AU
    Posts
    24,203
    Mentioned
    456 Post(s)
    Tagged
    8 Thread(s)
    That's OK, it's just interesting to know the field it applies to. A lot of people are skeptical about the need to design for the JS off scenario, so your comments above are a salutary example of why it's necessary. Thanks for your feedback. I'm going to bookmark this thread for future reference!


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
  •