Click to See Complete Forum and Search --> : Result in TEXTAREA at last mouse location?


phptek
04-28-2003, 10:45 AM
G'day folks:

I have a JS function that takes user-inputted text and the url of a file they select, wraps custom tags around the two and prints it all into a TEXTAREA.

HOWEVER:

Presently the result is always dumped at the *end* of the last content in the TEXTAREA. Is it possible to get/store the last mouse position within the TEXTAREA and have the result dumped at that point in the TEXTAREA instead of at the end??

I thank you in advance for any pointers you may have.

Cheers.

phptek
04-29-2003, 03:15 AM
Dave:

Thanks very much for that. It's exactly what I was after. The fact it don't work in NS isn't an issue. As long as the basic function works - that is the custom markup being dumped somewhere into the TEXTAREA in NS6+, Opera 6+ and IE5+ then I'm a happy chappy!

Cheers Dave. :)