This is Interesting: Free Magazines for Graphics designers and webmasters
Home > Archive > Mozilla XML > April 2005 > Question about someting similar to textrange in Mozilla/Firefox
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Question about someting similar to textrange in Mozilla/Firefox
|
|
| Simon Engvall 2005-04-04, 12:35 pm |
| Hi,
I have a table full of <div>elements with content. When I use IE I can use
the method parentElement() in the textrange object to retrive witch element
the cursor is at och the selected, is there something similar available in
the Mozilaa/Firefoxworld?
Thanks in advance Simon Engvall
| |
| Martin Honnen 2005-04-04, 12:35 pm |
|
Simon Engvall wrote:
> I have a table full of <div>elements with content. When I use IE I can use
> the method parentElement() in the textrange object to retrive witch element
> the cursor is at och the selected, is there something similar available in
> the Mozilaa/Firefoxworld?
I am not sure why you are asking in the XML group.
As for text selection in Mozilla, there are some APIs,
var selection = window.getSelection();
gives you a selection object, its API is documented here
<http://xulplanet.com/references/objref/Selection.html>
If you have further questions on that API then try the DOM group,
followup-to is set.
--
Martin Honnen
http://JavaScript.FAQTs.com/
|
|
|
| | Copyright 2003 - 2008 forum4designers.com Software forum Computer Hardware reviews |
|