Copy Clipboard

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Bruce A. Julseth

    Copy Clipboard

    I want to copy to a clipboard from my webpage using data that is available
    from an hidden variable on <inputstatement .

    Using window.clipboar dData.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

    #2
    Re: Copy Clipboard

    On Nov 19, 10:16 pm, "Bruce A. Julseth" <julebj_nos...@ bellsouth.net>
    wrote:
    I want to copy to a clipboard from my webpage using data that is available
    from an hidden variable on <inputstatement .
    >
    Using window.clipboar dData.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.)

    Comment

    • Bruce A. Julseth

      #3
      Re: Copy Clipboard


      "David Mark" <dmark.cinsoft@ gmail.comwrote in message
      news:9df592c7-5669-47c4-8006-680b064f6a7a@d2 3g2000yqc.googl egroups.com...
      On Nov 19, 10:16 pm, "Bruce A. Julseth" <julebj_nos...@ bellsouth.net>
      wrote:
      I want to copy to a clipboard from my webpage using data that is available
      from an hidden variable on <inputstatement .
      >
      Using window.clipboar dData.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.


      Comment

      • David Mark

        #4
        Re: Copy Clipboard

        On Nov 21, 9:24 pm, "Bruce A. Julseth" <julebj_nos...@ bellsouth.net>
        wrote:
        >
        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!
        >
        Thanks again.
        No problem.

        Comment

        Working...