[jawsscripts] Re: Activating a Button with JAWS

  • From: "Geoff Chapman" <gch@xxxxxxxxxxxxxxxx>
  • To: <jawsscripts@xxxxxxxxxxxxx>
  • Date: Thu, 1 Jan 2009 02:02:58 +1100

wow everet! all very cool info I never knewed before. thank you for sharing
this!

can you maybe put this one up on the magic wiki that I don't know how to use
yet?
I think it's definitely fodda for it.

----- Original Message ----- 
From: "E.J. Zufelt" <everett@xxxxxxxxx>
To: <jawsscripts@xxxxxxxxxxxxx>
Sent: Wednesday, December 24, 2008 11:54 PM
Subject: [jawsscripts] Re: Activating a Button with JAWS


> Good morning again,
>
> Another note:
>
> If the button (or other element) that you are looking for has only a name
> and not an id you can use.
>
> Let oButton = oDoc.getElementsByName("nameHere")
>
> This returns an array of all of the elements with the specified name.  To
> access the array elements use parentheses, e.g.
>
> oButton(0).click
>
> You can find out how many elements were returned with
>
> oButton.length
>
> HTH,
> Everett
>
>
> ----- Original Message ----- 
> From: "E.J. Zufelt" <everett@xxxxxxxxx>
> To: <jawsscripts@xxxxxxxxxxxxx>
> Sent: Wednesday, December 24, 2008 8:40 AM
> Subject: [jawsscripts] Activating a Button with JAWS
>
>
> > Good morning,
> >
> > I found a solution to my Find problem, but I am still open to suggested
> > methods to use that function.
> >
> > What I was attempting to do is to locate a button on a page full of
> > buttons
> > and then to provide a JAWS Script to click on that particular button (to
> > save the end user searching for the right button all day long).
> >
> > Thanks to Jamal for reminding me that you can access the IE DOM using
> > JAWS.
> >
> > Here is what I did:
> >
> > Script findButton ()
> >
> > Var
> >
> > Object oDoc,
> >
> > Object oButton
> >
> >
> >
> > ; Gets a reference to the DOM
> >
> > Let oDoc = IEGetCurrentDocument ()
> >
> >
> >
> > ; Finds the button that I am looking for based on the buttons id
atribute.
> >
> > Let oButton = oDoc.getElementById("b2")
> >
> > oButton.click()
> >
> > EndScript
> >
> >
> >
> > HTH,
> >
> > Everett
> >
> >
> >
> >
> >
> > __________
> > Visit and contribute to The JAWS Script Repository
http://jawsscripts.com
> >
> > View the list's information and change your settings at
> > http://www.freelists.org/list/jawsscripts
> >
>
> __________
> Visit and contribute to The JAWS Script Repository http://jawsscripts.com
>
> View the list's information and change your settings at
> http://www.freelists.org/list/jawsscripts
>

__________ 
Visit and contribute to The JAWS Script Repository http://jawsscripts.com

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

Other related posts: