Topic: Ajax: selected text

Does anyone know if there is a built in Ajax feature to get the text the user has selected/highlighted with the mouse on the webpage?

If art interprets our dreams, the computer executes them in the guise of programs.

-SICP (Abelson, Sussman)

Re: Ajax: selected text

There are ways to copy text to the clipboard using javascript, but I don't know of a way to use that in an AJAX function.

Most code examples are usually pulled out of the air and not tested. Use at your own risk!

Re: Ajax: selected text

I think this might interest you:

http://www.quirksmode.org/js/selected.html

Josh Catone helps run this place
Rails Forum - Rails Jobs

Re: Ajax: selected text

I saw that.  If I get the time I'll write the functions myself and submit it as a tutorial.  Thanks for the replies.

If art interprets our dreams, the computer executes them in the guise of programs.

-SICP (Abelson, Sussman)