Why Use Unobtrusive Ajax?
I hope by now I've already convinced you of the practical benefits of using Ajax unobtrusively. You've seen that separating and grouping HTML, CSS, and JavaScript together makes your code cleaner and easier to maintain. You've learned how to use HTML and CSS to its full potential in order to make the use of JavaScript less crucial. I've also told you all about how your sites will be much more accessible and usable when you don't rely on JavaScript or Flash alone.
Well, in case you're not yet convinced, I'd like to give you even more reasons to see the light. If you are already convinced and I'm just preaching to the choir, read ahead to learn how to convince those around you why they should care about the minority without JavaScript.
You Don't Have to Use Unobtrusive Ajax
It's true. There's no law saying you have to use Ajax unobtrusively, and in actuality, most people don't. It's important to understand that sometimes an obtrusive web application makes some sense. However, I think you'll see that those scenarios are quite rare, quite specialized, and very obvious. In other words, chances are your web application isn't the exception.
Even if a component of your web site requires JavaScript or Flash, I don't think any web site or application would need JavaScript entirely from start to finish. There should be as much content available to everyone as possible.
There are quite a few web scenarios that require JavaScript or Flash, and sometimes this makes perfect ...
Get Unobtrusive Ajax now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.