PDA

View Full Version : Copy data from windows clipboard to Ext Grid not working on FF



abhayarora
31 Jul 2009, 1:14 AM
HI ,
I have a editable grid in which i am trying to get data from Excell Spread sheet but it is not working on FF

var clipBoardText = window.clipboardData.getData('Text');
clipDataList = clipBoardText.split("\r\n");
then make record from this datalist and push into grid dataStore
But it gives error on
"var clipBoardText = window.clipboardData.getData('Text'); "

Says undefined on FF works fine on IE

Lloyd K
31 Jul 2009, 2:02 AM
As far as I understand it that's IE only so that is no surprise there.

abhayarora
31 Jul 2009, 2:06 AM
can you povide me any solution so that it can work on FF TO

Condor
31 Jul 2009, 2:22 AM
Not standard, it's only possible by installing a plugin or signed script (read this (http://support.mozilla.com/en-US/kb/Granting+JavaScript+access+to+the+clipboard)).

Lloyd K
31 Jul 2009, 5:20 AM
There are flash clipboard things but since Adobe Flash 10 this has required direct user interaction and you can't just call copy/paste anymore.