Connecting Tech Pros Worldwide Help | Site Map

Copy Clipboard

  #1  
Old November 20th, 2008, 03:25 AM
Bruce A. Julseth
Guest
 
Posts: n/a
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.


  #2  
Old November 20th, 2008, 03:25 AM
David Mark
Guest
 
Posts: n/a

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.)
  #3  
Old November 22nd, 2008, 02:25 AM
Bruce A. Julseth
Guest
 
Posts: n/a

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.


  #4  
Old November 22nd, 2008, 02:45 AM
David Mark
Guest
 
Posts: n/a

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 Threads
Thread Thread Starter Forum Replies Last Post
Copy Clipboard in file Over answers 23 October 13th, 2008 01:05 PM
Copy Clipboard in file Over answers 3 October 4th, 2008 12:35 AM