Click to See Complete Forum and Search --> : select 2 field
mduran
02-05-2003, 10:19 AM
Hi,
Here is my question. Is there some way of
1) select a sentence, paragraph... from a text
2) passing this selection as a value to a (popup) form field, triggered by an onClick event or similar ?
any idea ? thanks a lot !
m.
Could you be more vague? :D Just kidding.
Originally posted by mduran
select a sentence, paragraph... from a textWhat exactly are you trying to do? If it is possible to put the text that you are looking to move to your popup inside a <div> tag, it'd be no problem.
mduran
02-05-2003, 01:28 PM
Originally posted by pyro
Could you be more vague? :D Just kidding.
What exactly are you trying to do? If it is possible to put the text that you are looking to move to your popup inside a <div> tag, it'd be no problem.
I'll try to be more vague ;-)
Imagine I have a page with an article; then I select the first three sentences with my mouse, and by pushing a button at the bottom of my page I get a pop-up window with a form where my first field is already filled with those three sentences.
Any inspiration ? thx!
I'm guessing it could maybe be done with createRange, but I'm not sure... Sorry. :( The problem would be figuring out which text is selected, not the actually copying part.