[jawsscripts] Problem capturing text using DOM in IE 11

  • From: "John Robichaud" <John_Robichaud@xxxxxxxxxxx>
  • To: "JawScripts" <jawsscripts@xxxxxxxxxxxxx>
  • Date: Tue, 9 Dec 2014 16:05:54 -0500

I'm having a problem capturing text from an HTML frame using the DOM in IE
11.  This is Windows 7 and Jaws 15.
The following code works with IE8 and Jaws 13 but not with IE 11 and Jaws
15:

 

String Function WorkAreaText ()

var

     object doc,

     object TopWindow,

     object win,

     object frames,

     string sBuffer

 

     Let doc = ie4GetCurrentDocument ()

     Let topWindow = doc.parentWindow

     Let topWindow = topWindow.top

     Let frames = TopWindow.frames

     Let win = ieGetUnrestrictedWindow(frames(2)).document.body

     Let sBuffer = win.createTextRange().text              

                     return sBuffer    ;the text in the frame

EndFunction

 

 

I'd appreciate any suggestions.

Also can anyone explain the difference between ie4GetCurrentDocument ()and
ieGetCurrentDocument ().  

Although I've successfully used the function ieGetUnrestrictedWindow() many
times in the manner shown above I've never seen a good explanation of it.
Can anyone explain it?

John Robichaud

 



__________�

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

Other related posts: