+ Start a Discussion
anurajanuraj 

copy

Hi 

please tell me how to copy a value on clicking a button. and after that i want to past the value into a notepad using keybord (ctrl+ v)

 

thanks 

Anuraj

Andy BoettcherAndy Boettcher

Accessing the clipboard is pretty simple in IE - but quite difficult in Chrome / Firefox / other Mozilla browsers.

 

What are you trying to do?

 

-Andy

anurajanuraj

thanks for your reply. I have sone values from object displyed on VF page such as name, Address etc. In front of each it i have a button and i when i click the button i want to copy the value related to the value eg: if i click the button infront of name then name should be copy fron the page and i want to past to notepad by using ctrl + V

 

thanks 

Anuraj

Andy BoettcherAndy Boettcher

Due to a myriad of security concerns, accessing the local computer via web browser is not just "press button and it happens".  There is a Javascript library that should take most of the pain out of it - I would advise that you check out ZeroClipboard and see if that will do the trick for you.

 

http://code.google.com/p/zeroclipboard/

 

-Andy