[jawsscripts] Re: focusing on specific page elements

  • From: Doug Lee <doug.lee@xxxxxxxxxxxxxxxx>
  • To: jawsscripts@xxxxxxxxxxxxx
  • Date: Fri, 28 Mar 2014 09:07:36 -0400

I've had two projects this year in which I found it advantageous to
use JAWS' DOM access in Internet Explorer to inject ARIA attributes
into a displayed web page in order to make JAWS render it more
correctly in its virtual view. Focus can be set similarly - in fact,
because JAWS can directly access the DOM, it can do most anything
Javascript can do, up to and including writing Javascript to the page
and running it in realtime. Of course, it is always best when the page
itself comes up accessible by itself.

On Fri, Mar 28, 2014 at 06:45:33AM -0600, John Martyn wrote:
No, it has to be coded on the webpage. There is no way to inject javascript
commands into a webpage through jaws.
HTH
John

-----Original Message-----
From: jawsscripts-bounce@xxxxxxxxxxxxx
[mailto:jawsscripts-bounce@xxxxxxxxxxxxx] On Behalf Of Homme, James
Sent: Friday, March 28, 2014 6:44 AM
To: jawsscripts@xxxxxxxxxxxxx
Subject: [jawsscripts] Re: focusing on specific page elements

Hi,
Do you then get JAWS to somehow insert this into the DOM?

Jim



-----Original Message-----
From: jawsscripts-bounce@xxxxxxxxxxxxx
[mailto:jawsscripts-bounce@xxxxxxxxxxxxx] On Behalf Of John Martyn
Sent: Friday, March 28, 2014 7:25 AM
To: jawsscripts@xxxxxxxxxxxxx
Subject: [jawsscripts] focusing on specific page elements

I just thought of this. If you want to bring control to a specific form
element, the best thing to do is use javascript.
One an OnClick element of a link you can call a function that says

Document.formName.formelementName.focus()



This would be the fastest way to bring focus to an element whether it be a
form or a link etc. But you need to name the name and id of that control so
javascript sees it. For example:

Function clickIt(){

Document.divName.ElementName.Focus()

}

HTML code

<a href="" OnClick="javascript:ClickIt()">



<div name="objectName" id="objectName">

Some element here

</div>

Or if you are using multiple forms

Document.formName.FieldName.Focus()

<form name="myForm" id="myForm" action=.

<input name=FieldName" id="fieldname" type="text">

Just a thought at 5 am after thinking about it.

HTH

John Martyn



__________???

View the list's information and change your settings at
http://www.freelists.org/list/jawsscripts


________________________________

This e-mail and any attachments to it are confidential and are intended
solely for use of the individual or entity to whom they are addressed. If
you have received this e-mail in error, please notify the sender immediately
and then delete it. If you are not the intended recipient, you must not
keep, use, disclose, copy or distribute this e-mail without the author's
prior permission. The views expressed in this e-mail message do not
necessarily represent the views of Highmark, its diversified business, or
affiliates.

__________???

View the list's information and change your settings at
http://www.freelists.org/list/jawsscripts

__________???

View the list's information and change your settings at 
http://www.freelists.org/list/jawsscripts

-- 
Doug Lee, Senior Accessibility Programmer
SSB BART Group - Accessibility-on-Demand
mailto:doug.lee@xxxxxxxxxxxxxxxx  http://www.ssbbartgroup.com
"While they were saying among themselves it cannot be done,
it was done." --Helen Keller
__________�

View the list's information and change your settings at 
http://www.freelists.org/list/jawsscripts

Other related posts: