/    Sign up×
Community /Pin to ProfileBookmark

Accessing Client Clipboard

Hi All,

I am trying to retrieve an image from the users clipboard and save it to a file on the server. I copy an mschart to the clipboard using chart.editcopy and I know that it exists within the clipboard.

I am trying to use window.clipboardData.getData but I don’t completely understand.

Any help greatly appreciated,
Fiona

to post a comment
JavaScript

3 Comments(s)

Copy linkTweet thisAlerts:
@David_HarrisonJul 21.2004 — Sometimes I copy things that I need to the clipboard, I hope you ask the user whether they want to copy an image to it.

If you want to upload an image then you'll need a server-side language. Find out what you have available to you, then ask in the appropriate forum.
Copy linkTweet thisAlerts:
@feesauthorJul 21.2004 — No I don't ask, I want to copy the chart into a crystal report (which the user would have requested)

I thought I would need to do it on the client side, which is why I asked in this forum. You are saying I need to use vb.net in this case to access the client clipboard?

Fiona
Copy linkTweet thisAlerts:
@David_HarrisonJul 21.2004 — [i]Originally posted by fees[/i]

[B]You are saying I need to use vb.net in this case to access the client clipboard?[/B][/QUOTE]
If by that you mean ASP.net, then yeah, that'd do it.

Edit: Oh wait, nonononono. If you want to upload something you'll need a server side language, but I don't even know if you can access the clipboard, that sounds like a privacy issue to me (M$IE probably lets you).
×

Success!

Help @fees spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.18,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...