Connecting Tech Pros Worldwide Forums | Help | Site Map

Copy Clipboard

Bruce A. Julseth
Guest
 
Posts: n/a
#1: Nov 20 '08
I want to copy to a clipboard from my webpage using data that is available
from an hidden variable on <inputstatement.

Using window.clipboardData.setData("Text", "This text value"); in a
javascript function works great in IE. I can't get it to work in Firefox or
in Safari.

Any suggestions on how I do this?

Thanks.



David Mark
Guest
 
Posts: n/a
#2: Nov 20 '08

re: Copy Clipboard


On Nov 19, 10:16*pm, "Bruce A. Julseth" <julebj_nos...@bellsouth.net>
wrote:
Quote:
I want to copy to a clipboard from my webpage using data that is available
from an hidden variable on <inputstatement.
>
Using window.clipboardData.setData("Text", "This text value"); in a
javascript function works great in IE. I can't get it to work in Firefox or
in Safari.
There is an equivalent in FF, but no method that writes to the
clipboard is guaranteed to work. Typically the user is asked if they
want to cancel it (or it throws an exception.)
Bruce A. Julseth
Guest
 
Posts: n/a
#3: Nov 22 '08

re: Copy Clipboard



"David Mark" <dmark.cinsoft@gmail.comwrote in message
news:9df592c7-5669-47c4-8006-680b064f6a7a@d23g2000yqc.googlegroups.com...
On Nov 19, 10:16 pm, "Bruce A. Julseth" <julebj_nos...@bellsouth.net>
wrote:
Quote:
I want to copy to a clipboard from my webpage using data that is available
from an hidden variable on <inputstatement.
>
Using window.clipboardData.setData("Text", "This text value"); in a
javascript function works great in IE. I can't get it to work in Firefox
or
in Safari.
There is an equivalent in FF, but no method that writes to the
clipboard is guaranteed to work. Typically the user is asked if they
want to cancel it (or it throws an exception.)

Thanks... I am currently moving the data between pages using an <input>
hidden variable, then retrieving with a POST. It works.

Thanks again.


David Mark
Guest
 
Posts: n/a
#4: Nov 22 '08

re: Copy Clipboard


On Nov 21, 9:24*pm, "Bruce A. Julseth" <julebj_nos...@bellsouth.net>
wrote:
Quote:
>
Thanks... I am currently moving the data between pages using an <input>
hidden variable, then retrieving with a POST. It works.
Yes, when presented with a cross-browser impossibility, change the
design. Sounds like a much better one too!
Quote:
>
Thanks again.
No problem.
Closed Thread


Similar JavaScript / Ajax / DHTML bytes