WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: JAWS 14 issues with partial view reloads for Single Page Java web applications


From: Asa Baylus
Date: Jul 22, 2015 5:08AM

Promises are wonderful here's a link.

If you're using jquery then you have access to promises - not A spec promises but that shouldn't matter for your use case

A simple callback function may work just as well.

There are a number of other patterns for handling control flow is JS land.

setTimeout is not a good match for the use case you've described.

If your devs can reproduce as a fiddle or jsbin and send a link it would really help.


Sent from my iPhone

> On Jul 22, 2015, at 6:56 AM, Mary Elizabeth Sullivan < <EMAIL REMOVED> > wrote:
> Interesting! What do you mean by "promise".
> Sent from my iPhone
>>> On Jul 22, 2015, at 03:11, _mallory < <EMAIL REMOVED> > wrote:
>>> On Tue, Jul 21, 2015 at 05:42:50PM +0100, <EMAIL REMOVED> wrote:
>>> You are right that document ready is too early to affect content loaded in
>>> via AJAX, but instead of using a timeout (when you cannot guarantee it will
>>> run at the right time) you listen for the completion of the AJAX call.
>> It's too bad we don't have cross-UA mutation/object observers. But so
>> a Promise might indeed be the best thing for dealing with focus, instead
>> of setTimeouts.
>> Having JS determine focus instead of whatever browser default there is
>> can be desireable in cases where users (all of them) expect to stay in
>> the same page position even when new content loads (so long as it isn't
>> loading far away from current-position).
>> _mallory
>> >> >> >> > > > >