Connecting Tech Pros Worldwide Help | Site Map

Copy Text To Clipboard

Wayne Wengert
Guest
 
Posts: n/a
#1: Jul 19 '05
I have an ASP page in which I want to copy the contents of a variable (text)
to the clipboard. Based on MSDN examples I tried

window.clipboardData.setData(strTemp)

and that generates an error that "window" is not declared

How do I get my ASP page to copy the data to a clupboard?

Wayne


Steven Burn
Guest
 
Posts: n/a
#2: Jul 19 '05

re: Copy Text To Clipboard


Might want to explain _why_ you want to copy it to the clipboard in the
first place as there's most likely, a better way of achieving it.

--

Regards

Steven Burn
Ur I.T. Mate Group
www.it-mate.co.uk

Keeping it FREE!


"Wayne Wengert" <wayneDONTWANTSPAM@wengert.com> wrote in message
news:Om25eWLoEHA.3968@TK2MSFTNGP11.phx.gbl...[color=blue]
> I have an ASP page in which I want to copy the contents of a variable[/color]
(text)[color=blue]
> to the clipboard. Based on MSDN examples I tried
>
> window.clipboardData.setData(strTemp)
>
> and that generates an error that "window" is not declared
>
> How do I get my ASP page to copy the data to a clupboard?
>
> Wayne
>
>[/color]


Tom Kaminski [MVP]
Guest
 
Posts: n/a
#3: Jul 19 '05

re: Copy Text To Clipboard


"Wayne Wengert" <wayneDONTWANTSPAM@wengert.com> wrote in message
news:Om25eWLoEHA.3968@TK2MSFTNGP11.phx.gbl...[color=blue]
>I have an ASP page in which I want to copy the contents of a variable
>(text)
> to the clipboard. Based on MSDN examples I tried
>
> window.clipboardData.setData(strTemp)
>
> and that generates an error that "window" is not declared
>
> How do I get my ASP page to copy the data to a clupboard?[/color]

There is no notion of a "clipboard" (or a "window" for that matter) in ASP
server-side code.

--
Tom Kaminski IIS MVP
http://www.microsoft.com/windowsserv...y/centers/iis/
http://mvp.support.microsoft.com/
http://www.iisfaq.com/
http://www.iistoolshed.com/ - tools, scripts, and utilities for running IIS
http://www.tryiis.com


Wayne Wengert
Guest
 
Posts: n/a
#4: Jul 19 '05

re: Copy Text To Clipboard


Thanks for the responses. What I am trying to do is to collect a list of
email addresses and put it on the clipboard so the user can paste it into
their email app to send those addressees email.

Wayne

"Wayne Wengert" <wayneDONTWANTSPAM@wengert.com> wrote in message
news:Om25eWLoEHA.3968@TK2MSFTNGP11.phx.gbl...[color=blue]
> I have an ASP page in which I want to copy the contents of a variable[/color]
(text)[color=blue]
> to the clipboard. Based on MSDN examples I tried
>
> window.clipboardData.setData(strTemp)
>
> and that generates an error that "window" is not declared
>
> How do I get my ASP page to copy the data to a clupboard?
>
> Wayne
>
>[/color]


Steven Burn
Guest
 
Posts: n/a
#5: Jul 19 '05

re: Copy Text To Clipboard


Just output it to a text area (ASP doesn't have a server-side clipboard.
You'd need to find a way to do it using JScript/Javascript etc, on the
client-side)

I'm a little curious though.... surely if the persons are sending e-mails to
the recipients, they already have the recipients address's?

--

Regards

Steven Burn
Ur I.T. Mate Group
www.it-mate.co.uk

Keeping it FREE!


"Wayne Wengert" <wayneDONTWANTSPAM@wengert.com> wrote in message
news:uimxsiLoEHA.2340@TK2MSFTNGP10.phx.gbl...[color=blue]
> Thanks for the responses. What I am trying to do is to collect a list of
> email addresses and put it on the clipboard so the user can paste it into
> their email app to send those addressees email.
>
> Wayne
>
> "Wayne Wengert" <wayneDONTWANTSPAM@wengert.com> wrote in message
> news:Om25eWLoEHA.3968@TK2MSFTNGP11.phx.gbl...[color=green]
> > I have an ASP page in which I want to copy the contents of a variable[/color]
> (text)[color=green]
> > to the clipboard. Based on MSDN examples I tried
> >
> > window.clipboardData.setData(strTemp)
> >
> > and that generates an error that "window" is not declared
> >
> > How do I get my ASP page to copy the data to a clupboard?
> >
> > Wayne
> >
> >[/color]
>
>[/color]


Mark Schupp
Guest
 
Posts: n/a
#6: Jul 19 '05

re: Copy Text To Clipboard


Just create a "mailto:" link with your list of email addresses as in:

<A HREF="mailto:target1@theirmail.com;target2@theirma il.com;">Send
emails</A>

--
Mark Schupp
Head of Development
Integrity eLearning
www.ielearning.com


"Wayne Wengert" <wayneDONTWANTSPAM@wengert.com> wrote in message
news:uimxsiLoEHA.2340@TK2MSFTNGP10.phx.gbl...[color=blue]
> Thanks for the responses. What I am trying to do is to collect a list of
> email addresses and put it on the clipboard so the user can paste it into
> their email app to send those addressees email.
>
> Wayne
>
> "Wayne Wengert" <wayneDONTWANTSPAM@wengert.com> wrote in message
> news:Om25eWLoEHA.3968@TK2MSFTNGP11.phx.gbl...[color=green]
> > I have an ASP page in which I want to copy the contents of a variable[/color]
> (text)[color=green]
> > to the clipboard. Based on MSDN examples I tried
> >
> > window.clipboardData.setData(strTemp)
> >
> > and that generates an error that "window" is not declared
> >
> > How do I get my ASP page to copy the data to a clupboard?
> >
> > Wayne
> >
> >[/color]
>
>[/color]


Wayne Wengert
Guest
 
Posts: n/a
#7: Jul 19 '05

re: Copy Text To Clipboard


Thanks for the additional replies.

The list of email addresses is the result of a couple of queries where the
user sets certain criteria. The list of email addresses can be well over
1,000 bytes and mailto cannot deal with any target string longer that 250
(been there - tried that). I suspect the JavaScript function is the best
alternative.

Wayne

"Wayne Wengert" <wayneDONTWANTSPAM@wengert.com> wrote in message
news:uimxsiLoEHA.2340@TK2MSFTNGP10.phx.gbl...[color=blue]
> Thanks for the responses. What I am trying to do is to collect a list of
> email addresses and put it on the clipboard so the user can paste it into
> their email app to send those addressees email.
>
> Wayne
>
> "Wayne Wengert" <wayneDONTWANTSPAM@wengert.com> wrote in message
> news:Om25eWLoEHA.3968@TK2MSFTNGP11.phx.gbl...[color=green]
> > I have an ASP page in which I want to copy the contents of a variable[/color]
> (text)[color=green]
> > to the clipboard. Based on MSDN examples I tried
> >
> > window.clipboardData.setData(strTemp)
> >
> > and that generates an error that "window" is not declared
> >
> > How do I get my ASP page to copy the data to a clupboard?
> >
> > Wayne
> >
> >[/color]
>
>[/color]


syoung
Guest
 
Posts: n/a
#8: Sep 30 '05

re: Copy Text To Clipboard


Hello Wayne,

Did you find a way to get the content of your clipboard to your asp page?
After reading all the replies to your request, I guess none of them really
know how to do it. I've seen it done. I used an web application where
copied the source code of a web page from any site, then went to the browser
with the web application and pushed a button that will end up parsing all
the html to retrieve the data from the page. I'm looking for the same
functionality with no success. If I find it I'll let you know.

Good luck in your search.


"Wayne Wengert" <wayneDONTWANTSPAM@wengert.com> wrote in message
news:uimxsiLoEHA.2340@TK2MSFTNGP10.phx.gbl...[color=blue]
> Thanks for the responses. What I am trying to do is to collect a list of
> email addresses and put it on the clipboard so the user can paste it into
> their email app to send those addressees email.
>
> Wayne
>
> "Wayne Wengert" <wayneDONTWANTSPAM@wengert.com> wrote in message
> news:Om25eWLoEHA.3968@TK2MSFTNGP11.phx.gbl...[color=green]
>> I have an ASP page in which I want to copy the contents of a variable[/color]
> (text)[color=green]
>> to the clipboard. Based on MSDN examples I tried
>>
>> window.clipboardData.setData(strTemp)
>>
>> and that generates an error that "window" is not declared
>>
>> How do I get my ASP page to copy the data to a clupboard?
>>
>> Wayne
>>
>>[/color]
>
>[/color]


Closed Thread