views:

106

answers:

3

in Ajax based web apps , Is it mandatory to provide an alternative "html" interface for those who don't have javascript enabled & slow connections?

for example Google Mail provides both Ajax & plain HTML Application but Microsoft SharePoint doesn't .

do we have to care about them (disabled javascript/slow connections) or not?

+2  A: 

This is really a question you need to answer for yourself. You need to be able to gauge what kind of userbase you will be turning away by not supplying/supporting people without Ajax support. In addition, you may want to consider the SEO and/or Accessibility aspects.

If this were an inhouse/controlled webapp, then I wouldn't worry too much about it. However, for a public website, I tend to program for the lowest common denominator and build up from there.

Jordan S. Jones
+2  A: 

"Mandatory"? "Have to"? According to whom? There is no law saying that you must (at least in the US), unless you happen to be under a government contract that requires Section 508 compliance (accessibility to people with disabilities, such as the blind; a JavaScript solution may not work well in a screen reader) or whatever your local equivalent is.

Now, should you? Probably, yes. Do you really want to tell your users who prefer to run with JavaScript disabled that they can't use your service? Or do you want people who are running on mobile phones with slow processors and possibly worse or no JavaScript support not to be able to use your service? Consider also your blind users who may be using your site with a screen reader. Also, it's easier for search engines to index your site if all of the content is in static versions of the page, rather than hidden in something loaded via an XMLHTTPRequest. And a well designed static website can also be much more easily adapted into a REST type API than a dynamic JavaScript based site.

Of course, there are always some applications that just don't make sense as a static HTML page. If you're implementing a drawing app using an HTML5 canvas, there's really no way to make that static. But on the whole, if you can do a static version, and it doesn't add too much to the cost of the project, you probably should. In fact, some advocate that you do a plain HTML static version first, and treat the styling and JavaScript as a progressive enhancement on the static version, rather than the primary focus.

Brian Campbell
+1  A: 

It's not mandatory. Depending on how much it matters if someone does not manage to do what he needs to do, you decide whether you'll implement an "html" only alternative.

e.g, it matters a lot in an eshop and maybe not so much on a photo gallery in a social networking site

cherouvim