Tuesday, September 17, 2013

Copy/Paste Is Easy? Not Really!



Can anyone who uses Computers can live without Copy/Paste ( Ctrl-C & Ctrl-V)?

Ctrl, C & V buttons takes away lots of loads from all the keyboard buttons and make your keyboards live longer.

These three buttons would have saved billion years of typing efforts of billion users all over the world.

So Why this post?
In one of our product which uses HTML/JS, we want to have a button to let person copy the content of some div and paste it on some other window.



But there are not JS/HTML provided way to do this. Only browser takes care of this is Unfortunately the most cursed browser, IE.

 I dont know why rest of the browsers have ignored this functionality.

 It is not that you cannot implement it, there is savior in ZeroClipboard which helps you implement copy paste in any browser. But it uses flash/swf the adobe solution. I fear if it will work at all on tablets as most of the phones/tablets havent given programmatic facility to copy paste.

It works perfectly with ZeroClipBoards, We created small demo to test this lib.


If browsers provide such a functionality in built, It will save a atleast a million horse power of energy of people who are using mouse or long press to select, copy and paste some content.


I dont know how bit.ly is doing it but I guess they must be using flash support to enable on button copy paste.




No comments: