Re: [Ironpython-users] get/set cursor position in HTML

2011-07-10 Thread Wolfgang Schmoller
I get a System.Windows.Browser.ScriptObject, when I'm calling "window.getSelection", but I can't invoke "getRangeAt(0)" on that object, neither by the direct call of "getRangeAt(0)" on the Object, nor by "Invoke("getRangeAt(0)")", which causes an exception. According to the official Website

Re: [Ironpython-users] get/set cursor position in HTML

2011-07-05 Thread Jimmy Schementi
The usual document and window variables are available in Python files which are executed via script tags; imported modules do not have those variables set. See http://www.ironpython.net/browser/docs.html#interacting-with-markup FYI, document.selection is an IE-only feature. ~Jimmy On Jul 5