[jawsscripts] Re: Using DOM to position Virtual cursor

  • From: "John Robichaud" <JRobichaud@xxxxxxxxxxxxxxxx>
  • To: <jawsscripts@xxxxxxxxxxxxx>
  • Date: Mon, 31 Aug 2009 15:09:43 -0400

No specific reason for using IE4GetCurrentDocument. I copied it from an old
script file. I believe the 2 are identical.
John 

-----Original Message-----
From: jawsscripts-bounce@xxxxxxxxxxxxx
[mailto:jawsscripts-bounce@xxxxxxxxxxxxx] On Behalf Of Donald Marang
Sent: Wednesday, August 26, 2009 3:48 PM
To: jawsscripts@xxxxxxxxxxxxx
Subject: [jawsscripts] Re: Using DOM to position Virtual cursor

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

__________ 
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: