You are not logged in.

Search results

Search results 1-3 of 3.

Friday, June 4th 2004, 6:24pm

Author: Nick

[Konqueror browser] getSelection() returns a string instead of Selection object

I hope anyone can shed any light on this and this is the right forum to post this issue in. I am trying to create a DOM Range object based off a user's selection. In Mozilla I can easily do this using: window.getSelection().getRangeAt(0) In IE I can do document.selection.createRange(); However, in Konqueror(3.2.2) document.getSelection() returns a string instead of a Selection object and window.getSelection() doesn't work at all. I know that the KHTML function KHTMLPart::selection() returns a DO...

Friday, June 4th 2004, 5:46pm

Author: Nick

thank you!

Thank you for your replies! I have posted in the above forums.

Friday, June 4th 2004, 12:01am

Author: Nick

getSelection() returns a string instead of Selection object

I am trying to create a DOM Range object based off a user's selection. In Mozilla I can easily do this using: window.getSelection().getRangeAt(0) In IE I can do document.selection.createRange(); However, in Konqueror(3.2.2) document.getSelection() returns a string instead of a Selection object and window.getSelection() doesn't work at all. I know that the KHTML function KHTMLPart::selection() returns a DOM::Range object (http://developer.kde.org/documentation/library/2.0-api/classref/khtml/KHTML...