How do paste text from clipboard in Opera?

D

Du Dang

I use this in ie and it works just fine. Hoever when i use it in opera, the
browser have a problem with the "createTextRange" bit.

=============================
var txtHandler = txt.createTextRange();
txtHandler.execCommand("paste");
=============================

Does anyone knows another method that allows me to paste the text in the
clipboard into my textbox?

Thanks
 
E

Erwin Moller

Du said:
I use this in ie and it works just fine. Hoever when i use it in opera,
the browser have a problem with the "createTextRange" bit.

=============================
var txtHandler = txt.createTextRange();
txtHandler.execCommand("paste");
=============================

Does anyone knows another method that allows me to paste the text in the
clipboard into my textbox?

Thanks


Hi Du Dang,

I cannot help you with that, but it raises a question: If IE (or any other
browser) can monitor my clipboard, can it also send that content to every
server without my knowledge?
If so, I gonna be sick (again).
Does somebody know if IE can monitor clipboardcontents without my knowledge?


Regards,
Erwin Moller
 
R

Randy Webb

Erwin said:
Du Dang wrote:





Hi Du Dang,

I cannot help you with that, but it raises a question: If IE (or any other
browser) can monitor my clipboard, can it also send that content to every
server without my knowledge?

Very possible.
If so, I gonna be sick (again).
Does somebody know if IE can monitor clipboardcontents without my knowledge?

Monitor it, perhaps. It wouldn't be hard.
onload, read the clipboarddata, then set an interval to compare it to
whats currently in it, if its changed, then post the new data to a
hidden field, submit the hidden field (in a hidden iframe) and go from
there.
 
D

Du Dang

Hi Erwin,

Sorry to bring you the bad news ...
Like they said, what you don't know can't hurt you or at least won't freak
you out :)
I cannot help you with that, but it raises a question: If IE (or any other
browser) can monitor my clipboard, can it also send that content to every
server without my knowledge?

If people want to do such thing, there are many means to achieve this. It a
matter working out the details.
If so, I gonna be sick (again).
lol

Does somebody know if IE can monitor clipboardcontents without my
knowledge?

One way too accomplish this is to use cookie to store the data from the
clipboard and pick it up when you feel like it

btw I'm not doing any thing of this evil magnitude, I'm only trying to
increase the lazy (less clicking) factor of my start page

Anyway have fun, I hope I didn't spooked you

Regards,

Du Dang



"Erwin Moller"
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,680
Members
48,796
Latest member
Greg L.

Latest Threads

Top