Comment Re:UX (Score 1) 323
I like to go down the middle road myself.
Every link, button and form in my webapp can be used with JS turned off. Every single one. This means I can write automatic bot scripts with a simple HTML parser that tests my webpages for any UI regressions and report those. That's a great help when refactoring code and guaranteeing .
However, should you have a JS-enabled browser, I simply check if the call was made with AJAX - if it was, I simply bypass rendering the entire UI and instead focus on the part that was requested. All ajax calls are made by a slightly edited regular anchor tag, like this:
<a class="ajaxlink" href="index.php?action=foo#bar">load foo</a>
<div id="bar">Foo loads here</div>
Never seen this anywhere else, wonder why?