News for hackers. Stuff that matters.
Re: Would you build a pure client-side JavaScript App using ... by mckoss on Friday April 08, 2011 @04:58PM (#2425583)
It is true that you'd need to write your app so that you either segregate user's input (the only one reading a document is the original user who created it), or sanitize user-entered data in the client before displaying it. I think this is pretty analogous to the traditional client/server model. The only difference is it all happens in the client. There ARE cases where you need to aggregate data from multiple users, analyze it, and generate a summary, that are not very amenable to the Pageforest model - since there is no "trusted agent" that can execute that code.
Re: Would you build a pure client-side JavaScript App using ... by ktsmith on Friday April 08, 2011 @05:29PM (#2425685)
Thanks for the quick replies. Given the additional information I can better answer your original question in the post of "would I use this." Due to the lack of a trusted agent anywhere in the stack I don't have any use cases that fit your model and so no I couldn't use it. Maybe a single player game or other toy. For the work that I typically do accessibility is also a huge factor and javascript can only be used for progressive enhancement so I couldn't create a 100% client side javascript application anyway.
Re: Would you build a pure client-side JavaScript App using ... by mckoss on Friday April 08, 2011 @08:42PM (#2426130)
Thanks so much for the thoughtful feedback.

BTW, can you explain why you can't do page rendering in JavaScript for accessibility? Is there reason screen readers can deal with dynamically generated HTML?

Re: Would you build a pure client-side JavaScript App using ... by ktsmith on Friday April 08, 2011 @09:35PM (#2426241)
It's not that page rendering can't be done with JavaScript and still be accessible. My experience with it via testing is that due to the large number of screen readers, and then differences within versions of the even the most common screen readers (JAWS for example) is that you can't really expect a consistent experience for your users where you get much more consistency with vanilla HTML. The single largest complaint we received while testing with screen readers on our latest app was related to how the user was informed by their software about dynamically changed content, something I have no control over. The compromise that we implemented was to try to detect screen readers and offer to disable all JavaScript content since the site was designed to degrade gracefully anyway.

This is going to be less of a problem for some companies than others, I just happen to be working on software that's designed to help HR departments with their hiring process and specifically with the accurate completion of certain federal forms. Getting complaints about violating the ADA could lead to lawsuits against my employer or our clients. Similar to the complaints that Google is receiving about accessibility problems in Google Apps and specifically gmail.

Here's a pretty good survey that has some more information if you are interested in the topic: http://webaim.org/projects/screenreadersurvey2/

Re: Would you build a pure client-side JavaScript App using ... by mckoss on Saturday April 09, 2011 @02:32AM (#2426664)
Very interesting. I wonder why Chrome wasn't mentioned at all in the survey.

I would love to find some tools, like a Chrome extension, that could display an accessibility score for a web page and provide guidance on solving problems. For those of us not using screen readers, it's easy to overlook errors without realizing it.

Re: Would you build a pure client-side JavaScript App using ... by ktsmith on Saturday April 09, 2011 @02:38AM (#2426672)
The survey I linked to is the 2009 version there's also a follow up with more info. My guess is that after a year Chromes market share was so small as to be not worth discussing. The newer survey, which I should have linked initially, still doesn't mention but does show improvement over the time span between surveys.

http://webaim.org/projects/screenreadersurvey3/

There's a few addons for firefox that focus on section 508 compliance but many of them are poorly maintained. You might want to look into this one, which I have not used myself however.

https://addons.mozilla.org/en-us/firefox/addon/qompliance/

Re: Would you build a pure client-side JavaScript App using ... by ktsmith on Friday April 08, 2011 @05:44PM (#2425720)
One other small note. I don't see where document management is handled. I see the document listing and can get back and forth between documents I've created, but I don't see any way to delete those documents.
Re: Would you build a pure client-side JavaScript App using ... by mckoss on Friday April 08, 2011 @08:43PM (#2426131)
TBD feature...