Wrox Home  
Search P2P Archive for: Go

  Return to Index  

javascript thread: SV: Clipboard


Message #1 by "Robert Nyman" <robert.nyman@c...> on Thu, 19 Sep 2002 17:16:11 +0200
Thanks, Robert.

George L Smyth

 -----Original Message-----
From: 	Robert Nyman [mailto:robert.nyman@c...]
Sent:	Thursday, September 19, 2002 11:16 AM
To:	javascript
Subject:	[javascript] SV: Clipboard

Can be done trough:

clipBoardData.setData("URL", "http://www.microsoft.com");

See
http://msdn.microsoft.com/workshop/author/dhtml/reference/methods/setdat
a.asp

or perhaps:

document.execCommand("Copy");


/Robert


-----Ursprungligt meddelande-----
Fr=E5n: George Smyth [mailto:george.smyth@U...]
Skickat: den 19 september 2002 17:04
Till: javascript
=C4mne: [javascript] Clipboard


I have written a little ASP routine that shortens the length of a URL.
I display the new URL and tell the user to copy it into their clipboard
so that it can be pasted into their email.

Is there any way to place this into the user's clipboard automatically?

Thanks -

George L Smyth




---

Improve your web design skills with these new books from Glasshaus.

Usable Web Menus
http://www.amazon.com/exec/obidos/ASIN/1904151027/ref=3Dnosim/theprogramme
r-20
Constructing Accessible Web Sites
http://www.amazon.com/exec/obidos/ASIN/1904151000/ref=3Dnosim/theprogramme
r-20
Practical JavaScript for the Usable Web
http://www.amazon.com/exec/obidos/ASIN/1904151051/ref=3Dnosim/theprogramme
r-20



---

Improve your web design skills with these new books from Glasshaus.

Usable Web Menus
http://www.amazon.com/exec/obidos/ASIN/1904151027/ref=3Dnosim/theprogramme
r-20
Constructing Accessible Web Sites
http://www.amazon.com/exec/obidos/ASIN/1904151000/ref=3Dnosim/theprogramme
r-20
Practical JavaScript for the Usable Web
http://www.amazon.com/exec/obidos/ASIN/1904151051/ref=3Dnosim/theprogramme
r-20


  Return to Index