[jawsscripts] Re: Using DOM to position Virtual cursor

  • From: Doug Lee <doug.lee@xxxxxxxxxxxxxxxx>
  • To: jawsscripts@xxxxxxxxxxxxx
  • Date: Wed, 26 Aug 2009 15:54:53 -0400

I have no proof except that I've never seen them return different
things, but I believe that IE4GetCurrentDocument ==
IEGetCurrentDocument, and IE4GetFocus == IEGetFocus.  FS would have
maintained the old names for compatibility with old third-party
scripts.

On Wed, Aug 26, 2009 at 03:48:05PM -0400, Donald Marang wrote:
I noticed that you use the function, IE4GetCurrentDocument, to retrieve the 
DOM of the web page.  The FSDN only talks about this creating the document 
object of the current web page.  There is another function, 
IEGetCurrentDocument, that is very similar but specifically uses the term 
DOM.  I always assumed that IE4GetCurrentDocument was a left over code that 
supported versions of IE up to version 4.  I am guessing that IE5 and above 
now support a more standard based DOM and the old JAWS function needed to be 
rewritten.  Am I correct in these assumptions?  Is there a specific reason 
to use IE4GetCurrentDocument instead of IEGetCurrentDocument?

Don Marang


----- Original Message ----- 
From: "John Robichaud" <JRobichaud@xxxxxxxxxxxxxxxx>
To: "JawScripts" <jawsscripts@xxxxxxxxxxxxx>
Sent: Wednesday, August 26, 2009 12:26 AM
Subject: [jawsscripts] Using DOM to position Virtual cursor


> Does anyone know of a way to force the virtual cursor to move to a 
> position
> on an html page that was selected using DOM methods?
> For example the following code will locate the text "Target Text" but how
> can you force the virtual cursor to move to it:
> var object oDoc, object oTopWindow, object oWin, object
> oFrames, object oTextRange, string sText
> Let oDoc = ie4GetCurrentDocument ()
> Let oTopWindow = oDoc.parentWindow
> Let oTopWindow = oTopWindow.top
> Let oFrames = oTopWindow.frames
> Let oWin =
> ieGetUnrestrictedWindow(oFrames("WorkArea")).document.body
> Let oTextRange = oWin.createTextRange()
> oTextRange.findText("Target Text")
> oTextRange.select().focus()
>
> John Robichaud
>
>
>
> __________
> 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

-- 
Doug Lee, Senior Accessibility Programmer
SSB BART Group - Accessibility-on-Demand
mailto:doug.lee@xxxxxxxxxxxxxxxx  http://www.ssbbartgroup.com
"While they were saying among themselves it cannot be done,
it was done." --Helen Keller
__________ 
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: