ThemeForest

JavaScript Disabled - How Far?

961 posts
  • Has been a member for 3-4 years
  • Contributed a Tutorial to a Tuts+ Site
  • Exclusive Author
  • Sold between 10 000 and 50 000 dollars
  • Bought between 10 and 49 items
  • United Kingdom
  • Referred between 1 and 9 users
jeffeatworld says

How far should you go when designing templates for folks who have JavaScript disabled?

For instance I want to create a switcher similar to the Envato switcher on Themeforest (top left)

What I’m planning doesn’t really affect functionality, it’s just an enhancement.

Woudl something like this be okay?

1 year ago
887 posts
  • Has been a member for 2-3 years
  • Repeatedly Helped protect Envato Marketplaces against copyright violations
  • Contributed a Tutorial to a Tuts+ Site
  • Author had a File in an Envato Bundle
  • Author had a Free File of the Month
  • Exclusive Author
  • Sold between 100 000 and 250 000 dollars
  • Elite Author
  • Bought between 50 and 99 items
  • France
  • Referred between 50 and 99 users
Pixelworkshop says

I’d make it showing on mouse hover, as long as it’s working with or without JS, that’s fine :)

1 year ago
798 posts
  • Has been a member for 2-3 years
  • Exclusive Author
  • Bought between 10 and 49 items
  • United States
fillerspace says

What I’m planning doesn’t really affect functionality, it’s just an enhancement. Woudl something like this be okay?

If the site functions fine without it, I’d make it display:none, and then reveal it with Javascript. If it were essential functionality, I would make it a form with a select box and submit button, and then replace it with the switcher using Javascript. A good example of this is the pay to autocomplete on PayPal…it starts as a select box, then is replaced with the autocomplete.

1 year ago
961 posts
  • Has been a member for 3-4 years
  • Contributed a Tutorial to a Tuts+ Site
  • Exclusive Author
  • Sold between 10 000 and 50 000 dollars
  • Bought between 10 and 49 items
  • United Kingdom
  • Referred between 1 and 9 users
jeffeatworld says

cheers folks – im now toying with doing it css based and changing it on hover as suggested. That way theres no need for the jQuery :-)

1 year ago
by
by
by
by
by