I recommend simply reading the DOM Core page from Quirksmode, which has all you need to know to get this working. http://quirksmode.org/dom/core/ ----- Original Message ----- From: "Travis Roth" <travis@xxxxxxxxxxxxxx> To: <jawsscripts@xxxxxxxxxxxxx> Sent: Saturday, March 29, 2014 4:07 PM Subject: [jawsscripts] Re: focusing on specific page elements > The document object model for the browser you're using. Sometimes the best > sources are JavaScript documentation. > Here is a page that has a HTML DOM reference: > http://www.w3schools.com/jsref/default.asp > > Most of the Dom is standardized between browsers, but not all of it so > depending on what you want to do and for which browser that requires > Google. > For example, I recently mentioned uing activeElement to find the browser's > focus. I believe this is IE specific, and Firefox has a different > command/attribute. > > > -----Original Message----- > From: jawsscripts-bounce@xxxxxxxxxxxxx > [mailto:jawsscripts-bounce@xxxxxxxxxxxxx] On Behalf Of Jim Snowbarger > Sent: Saturday, March 29, 2014 5:50 PM > To: jawsscripts@xxxxxxxxxxxxx > Subject: [jawsscripts] Re: focusing on specific page elements > > Here is one very basic question I can't seem to get past, being one who is > interested in all this, but who doesn't seem to have quite enough time to > really get focused on it long enough to actually learn and retain much. > Where does one go to get documentation on the DOM. I learn tidbits from > you > guys, but dont' know where you are going to get the information. > I know, microsoft. But, every time I go there, and search For Document > Object Model, I get the impression that there are lots of different object > models for different contexts, and I dont' know which one I am really > looking for. I very quickly get lost, and totally overwhelmed by the > absolute jungle I find at Microsoft. > Can anybody mercifully help narrow my search? > > ----- Original Message ----- > From: "Doug Lee" <doug.lee@xxxxxxxxxxxxxxxx> > To: <jawsscripts@xxxxxxxxxxxxx> > Sent: Saturday, March 29, 2014 5:07 PM > Subject: [jawsscripts] Re: focusing on specific page elements > > > Whatever DOM calls modify things should work I think. Examples include > .write from a Document object and .setAttribute from any element type. > You can assign .outerHTML but I think that can do odd things in some > cases. > > On Sat, Mar 29, 2014 at 04:22:52PM -0500, Jim Snowbarger wrote: > Good for you! So, what's the magic? How does one use jaws to insert Aria > Markup. > > > ----- Original Message ----- > From: "Doug Lee" <doug.lee@xxxxxxxxxxxxxxxx> > To: <jawsscripts@xxxxxxxxxxxxx> > Sent: Friday, March 28, 2014 8:07 AM > Subject: [jawsscripts] Re: focusing on specific page elements > > > 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 > > > > __________??? > > 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 > > > > __________� > > 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 > __________� View the list's information and change your settings at http://www.freelists.org/list/jawsscripts