[jawsscripts] Help with DOM traversing?

  • From: "Bryan Garaventa" <bgaraventa11@xxxxxxxxxxxxxx>
  • To: <jawsscripts@xxxxxxxxxxxxx>
  • Date: Sat, 18 Jul 2009 00:56:40 -0700

Any JAWS scripters know what the problem with this script is? For some 
reason, I can't get an array of embed tags, though other tags work fine...

var object params, object embeds, object dom, int count
let dom = IEGetCurrentDocument ()

; The following returns the correct array

let params = dom.getElementsByTagName("param")
let count = params.length
SayInteger (count) ; Shows correct number of param tags

; Yet the following does not work, even though the syntax is the same
let embeds = dom.getElementsByTagName("embed")

let count = embeds.length
SayInteger (count) ; Always returns 0



This can be tested at

http://www.weightwatchers.com

Which has approximately 30 param tags, and several embed tags.



Any idea why this is happening?



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

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

Other related posts: