WebAIM - Web Accessibility In Mind

E-mail List Archives

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

for

From: Jonathan C. Cohn
Date: Jul 21, 2015 9:51AM


There is a DocumentLoadedEvent with JAWS scripting that you could use if you want to do something client side.

Jonathan



Jonathan Cohn

> On Jul 21, 2015, at 11:40 AM, MEJ - Beth Sullivan < <EMAIL REMOVED> > wrote:
>
> Ya I've thought of that as a solution, but it's hard to do a timeout when
> you don't know the customer's environment using the application.
>
> I'm concerned if it goes to early, then the same issue will result.
>
> If it goes too late, the user may have already move forward in the
> application or corrected the improperly moved virtual cursor, only to be
> randomly moved to another part of the page. (We would know it was the right
> spot but for a JAWS user I'd be concerned that would be very disorienting.)
>
> Thank you,
>
> Beth
>
>> On Tue, Jul 21, 2015 at 11:21 AM, Paul J. Adam < <EMAIL REMOVED> > wrote:
>>
>> Maybe you need to do a setTimeout to wait a few seconds for the page to
>> fully load before sending focus manually? I've had to do that to modify the
>> accessibility properties of elements that load in via JS/iframes.
>>
>> Paul J. Adam
>> Accessibility Evangelist
>> www.deque.com
>>
>> Join us at our Mobile Accessibility "Bootcamp!"
>> August 6-7 in Austin Texas
>> https://dequeuniversity.com/events/2015/mobile
>> Topics include responsive web design, native apps, & more
>>
>>>> On Jul 21, 2015, at 9:18 AM, Mary Elizabeth Sullivan <
>>> <EMAIL REMOVED> > wrote:
>>>
>>> It's a very interesting problem. Essentially the team is trying to move
>> the focus manually using js. However, there is dynamic server side content
>> that is being added asynchronously which is stealing the jaws virtual
>> cursor from the .focus() code when the dynamic content loads.
>>>
>>> You can see visually that the dotted line and focus should be on one
>> element. But it moves to the dynamic content instead.
>>>
>>> I'm thinking that it is a page lifecycle issue?
>>>
>>> That they are using document.ready() which is too early to be calling
>> that js function.
>>> I'm pretty sure a .live function might do the trick instead maybe. I'm
>> not a js guru but that might be something.
>>>
>>> I wish I could call the js when the last piece of dynamic content is
>> loaded server side, but I know that can be brutal to implement Sometimes
>> with frameworks like Java.
>>>
>>> Any other thoughts?
>>> Thanks Paul for getting back to me.
>>>
>>> -Beth
>>>
>>> Sent from my iPhone
>>>
>>>> On Jul 20, 2015, at 15:53, Paul J. Adam < <EMAIL REMOVED> > wrote:
>>>>
>>>> Yes I've seen many problems with Single Page Apps. Focus management is
>> the biggest problem. Speaking dynamic content and unique page titles is
>> another major problem. You have to do this all manually with JavaScript.
>>>>
>>>> Paul J. Adam
>>>> Accessibility Evangelist
>>>> www.deque.com
>>>>
>>>> Join us at our Mobile Accessibility "Bootcamp!"
>>>> August 6-7 in Austin Texas
>>>> https://dequeuniversity.com/events/2015/mobile
>>>> Topics include responsive web design, native apps, & more
>>>>
>>>>> On Jul 20, 2015, at 2:14 PM, MEJ - Beth Sullivan <
>> <EMAIL REMOVED> > wrote:
>>>>>
>>>>> Hello,
>>>>>
>>>>> Has anyone seen an issue with single page java applications that are
>> using
>>>>> partial view using ajax to refresh the inside of the page dynamically
>> and
>>>>> JAWS 14. They are also injecting a # at the end of the url to make
>> sure it
>>>>> can be saved as a page/bookmarked.
>>>>>
>>>>> Any thoughts would be great.
>>>>>
>>>>> Thank you,
>>>>>
>>>>> Beth
>>>>> >>>>> >>>>> >>>>> >>>>
>>>> >>>> >>>> >>>> >>> >>> >>> >>> >>
>> >> >> >> > > > >