Martin Honnen wrote:
Dean A. Hoover wrote:
Is there an example somewhere of a function
that will take 2 parameters: text and a text
object (input type=text or textarea) and insert
that text using the current selection point(s)
for the specified object. The cursor should end
up where you would expect it to and it should
work in both IE and other popular browsers. Is
something like that already floating around?
See
http://www.faqts.com/knowledge_base/.../13562/fid/130
I am trying to use what you pointed out to me (cool stuff)
in conjunction with a DHTML menu package I purchased from
apycom.com. The script you gave me fails when used with that
package (on IE only) because the line:
if (range.parentElement() == input)
ends up being false. This is clearly some interaction
with the DHTML menus I am using. I don't really understand
much about these selection objects, as I am reading up on them
in "Dynamic HTML". Is there some way to reset things when this
function is called from the DHTML menu such that it will work
like it does with the example HTML?
Thanks.
Dean Hoover