Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Copying image to clipboard

    I am using smartgwt 2.2 for my application. I have customized context menu on right click on an image, I need to add a copy to systems clipboard functionality so i can copy an image from app then paste in somewhere else like (paint) . Is there a way I can accomplish it using customized menu?


    thanks

    #2
    It is browser specific, in IE you can do it with createControlRange coupled with an execCommand("Copy") if you know the id of the DIV with the image.

    Otherwise the cross-browser solutions involve using a flash file but usually not very solid. Other than IE you can't directly access the clipboard.

    Comment

    Working...
    X