[thelist] IE, Javasript, and Textranges

Joshua Olson joshua at waetech.com
Tue Aug 27 21:18:01 CDT 2002


----- Original Message -----
From: ".jeff" <jeff at members.evolt.org>
Sent: Tuesday, August 27, 2002 5:40 PM


> i've not had very good luck with the exec() method to copy contents to the
clipboard.  since you're using ie-only, may i suggest you look into the
clipboardData object and the setDate() method.
>
> window.clipboardData.setData('Text', string_im_building);
>
> i've successfully copied strings with tabs, new lines, and all sorts of
other characters and had it all retained exactly as i constructed it.
>
> clipboardData object (watch wrap):
>
<http://msdn.microsoft.com/workshop/author/dhtml/reference/objects/clipboard
data.asp>
>
> setData() method (watch wrap):
>
<http://msdn.microsoft.com/workshop/author/dhtml/reference/methods/setdata.a
sp>

Thanks .jeff, I'll certainly give that a shot.

-joshua




More information about the thelist mailing list