I made a domain specific script and saved it as the domain name of the
webpage and confirmed it works. I tried calling the function.
FromAutoStartEvent and FocusChanged but it is not reliably working -
sometimes I have to leave IE and go back in or once reading through the
page.
I want to create a generic script that does a series of actions when going
to certain sites. In this case he web developer aria described the button
but did not label it. The end goal is to create a series of helper scripts
for all our JAWS users for various internal web pages with issues.
1) how do I kick off this script to run when going to the page?
2) the label is based of another elementâs ID so that the button text
correctly shows in the Ins-F5 dialog. Is there a better way to sequently
go through elements with a certain criteria rather than the FoR and IF
loop? Perhaps FOR EACH somehow?
*void Function LabelStartButtons()*
* Var*
* int x,*
* object Dom,*
* object AllButtons,*
* string CourseNameFromAriaDescriptionID,*
* string AriaDescriptionID*
* dom =IEGetCurrentDocument()*
* AllButtons = dom.getElementsByTagName("button")*
* For X = 0 to AllButtons.Length*
* If AllButtons(x).innertext == "Start"*
* AriaDescriptionID AllButtons(x).GetAttribute("aria-describedby")*
* CourseNameFromAriaDescriptionID
dom.getElementByID(AriaDescriptionID).innertext*
* AllButtons(x).SetAttribute("aria-label","Start -
"+CourseNameFromAriaDescriptionID)*
* EndIf*
* EndFor*
EndFuction
__________�
View the list's information and change your settings at
http://www.freelists.org/list/jawsscripts