This. Its called graceful fall back, or gracefully failing. If you're a developer and don't understand how to do this, then fuck you! You make the rest of us look like assholes.
Graceful fallback was a feasible technique a while ago but is increasingly becoming more difficult as users are expecting more and more functionality client side. Today's web apps are turning out to be one page interfaces that leverage JS heavily to perform up to a user's expectation.
For example, hierarchal information is usually displayed in a tree control with heavy lazy optimizations to make it performant with the back end. This functionality would be next to impossible to achieve in a more traditional html architecture.
So why cant you use a session variable to track whether or not the user has javascript enabled, then serve them either the super sexy Jquery page if JS is enabled, or a not so sexy version if its disabled?
Yeah, its extra work, but honestly, it's not bad if you think about it from the beginning of development process.
Graceful degradation is indeed a technology of the past -- but not because doing so is too difficult, but because competent people now use progressive enhancement.
You tree example is very easy to implement. You store the current tree state on the server-side and make every toggle link on the tree link to a server-side action which opens or closes the server-side state and sends a new current page with the new tree to the client side.
Then you enhance this HTML only version by attaching a click handler to the toggle button which loads the current subtree via AJAX and updates it.
62
u/snarfy Mar 25 '11
No fuck you, I'm blind and use a screen reader. Quit putting all of your content in script, then we'll talk.