>That would be a great feature. Is there a _javascript_ snippet available
>that would do the job? If so, we'll add it right in.
Sure is, very handy. :)
<CFSET variables.jsTextOut = "
Put whatever here that you want to copy.
Testing, testing...
">
<!--- Show Clipboard Copy Option if Browser Supported --->
<SCRIPT LANGUAGE="_javascript_" TYPE="text/_javascript_"><!--
function toClipboard(textToCopy) {
document.getElementById(textToCopy).style.visibility = "visible";
document.getElementById(textToCopy).select();
var success = document.execCommand("Copy");
document.getElementById(textToCopy).style.visibility = "hidden";
}
if (document.queryCommandSupported("Copy")) {
document.writeln("<A
HREF="" to Clipboard</A>");
document.writeln("<TEXTAREA ID=\"awTextOut\"
STYLE=\"width:1px;height:1px;visibility:hidden;\">");
document.writeln("<CFOUTPUT>#JSStringFormat(variables.jsTextOut)#</CFOUTPUT>");
document.writeln("</TEXTAREA>");
}
//--></SCRIPT>
--
Phillip Beazley
Onvix -- Website Hosting, Development & E-commerce
Visit http://www.onvix.com/ or call 727-578-9600.
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
