Copy ASP variable to clipboard using Javascript

Copy ASP variable to clipboard using Javascript

am 29.12.2006 00:44:02 von zakhirn

Hello,

I have a search function that is reading companies from a database via
ASP and spitting out the results. I have various fields of each company
in variables and I want to be able to create a link that uses
Javascript to copy the address to the clipboard.

I know there is the javascript:window.clipboardData.getData(), but I
can't get to parse the ASP variable through. Does anyone know how I can
do this.

Thanks in advance.

Re: Copy ASP variable to clipboard using Javascript

am 29.12.2006 04:54:22 von McKirahan

wrote in message
news:1167349442.008063.269050@s34g2000cwa.googlegroups.com.. .
> Hello,
>
> I have a search function that is reading companies from a database via
> ASP and spitting out the results. I have various fields of each company
> in variables and I want to be able to create a link that uses
> Javascript to copy the address to the clipboard.
>
> I know there is the javascript:window.clipboardData.getData(), but I
> can't get to parse the ASP variable through. Does anyone know how I can
> do this.

To copy "to the clipboard" use "setData()" not "getData()".

Will this help?




Clipper.asp




To place the current date and time in the clipboard
.

Re: Copy ASP variable to clipboard using Javascript

am 29.12.2006 17:43:37 von zakhirn

Thats perfect....thanks a lot!