[jawsscripts] Re: AW: [!!Mass Mail]Re: using GetElementsByClassName in a script

  • From: Jason Fayre <jfayre@xxxxxxxxx>
  • To: jawsscripts@xxxxxxxxxxxxx
  • Date: Mon, 9 May 2016 11:33:14 -0400

I did.
I'll try typing the code by hand in case something strange happened in
the copy and paste from my email.



On 5/9/16, Bob <temp@xxxxxxxxxxxxxxx> wrote:

I'm pretty sure that's the correct syntax.
Did you declare both variables button and buttons?

I didn't name them very clearly!



On 9 May 2016, at 15:04, Jason Fayre <jfayre@xxxxxxxxx> wrote:

Bob,
When I run that code, I get an error which says:
Unexpected word: Buttons
It seems to be pointing at the foreach line.
Any ideas?



On 5/9/16, IPDGmbH <jawsscripts@xxxxxxxxxxxxxxx> wrote:
Hi Jonathan,
I am quite interested in the thingy You mentioned before, changing every
elements with a specific ID-String into buttons. Would You be so kind
and
give me a copy?

Thx

Richard
-----Ursprüngliche Nachricht-----
Von: jawsscripts-bounce@xxxxxxxxxxxxx
[mailto:jawsscripts-bounce@xxxxxxxxxxxxx] Im Auftrag von Jonathan Cohn
Gesendet: Montag, 9. Mai 2016 15:08
An: jawsscripts@xxxxxxxxxxxxx
Betreff: [!!Mass Mail][jawsscripts] Re: using GetElementsByClassName in
a
script

Offhand I don't remember. Perhaps its parent has a unique class or id
and
then you could work down from there. Though I suppose at that point you
would want to be using the JS methods available via GetDocument and not
XML
commands. I did once create a JAWS function that found every element
that
had an id starting with a specific string and add an ARIA tag to make it
appear as a button to JAWS. Write me off list if you need me to find
that
code.

Best wishes,

Jonathan



On 9 May 2016, at 08:59, Jason Fayre <jfayre@xxxxxxxxx> wrote:

Ok, thanks! I'll take a look.
Can I use those functions to actually change an attribute in the DOM
though? I need to turn off the aria-hidden attribute so that JAWS can
see this particular button.



On 5/9/16, Jonathan Cohn <jon.c.cohn@xxxxxxxxx> wrote:
I believe you are stuck with the getXML and then using XML parsing
commands
to get to the element in question. The Sharepoint scripts provided
with
the
JAWS use XML functions to grab the elements in the SharePoint toolbar
and
present them in a dialog, this should give you a good starting point.


Best wishes,

Jonathan



On 9 May 2016, at 08:31, Jason Fayre <jfayre@xxxxxxxxx> wrote:

Hello everyone,
I'm still working on writing scripts for the internal credit card
application I mentioned a while ago.
I've run across a button that has aria-hidden=true set, so JAWS
doesn't see it. This site had another one just like this that I was
able to work around, but this one is giving me trouble. The button
has
no ID set, but it does have a class. So, I should be able to use
GetElementsByClassName. The problem is that I'm not sure what type of
value this returns from a JAWS scripting standpoint. I thought it
returned an array, but that either isn't true, or I'm just not
accessing it correctly. Can anyone give me some pointers?
We are trying to reach out to the developers to get this stuff fixed,
but things are moving slower than we might like.
__________�

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

__________�

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

Other related posts: