Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Mascomm Systems on Jul 21, 2008 13:53
open dhtmlx forum
Copy-paste blocks in Firefox 3

When trying to copy and paste blocks (i.e. block selection) I get a confirm dialog for files hosted locally (okay) but no dialog and non-functional use for files hosted remotely.

I need a way to copy and paste pieces of a grid. It doesn't need to go through the clipboard since firefox seems to have such issues with that.

Thanks
Answer posted by Support on Jul 22, 2008 02:25
The existing block selection functionality oriented on using clipboard as data storage and can't be used without it.

>> but no dialog and non-functional use for files hosted remotely.
    http://support.mozilla.com/en-US/kb/Granting+JavaScript+access+to+the+clipboard#_Enabling_clipboard_access_for_a_web_site

>>I need a way to copy and paste pieces of a grid
    You can access selection zone manually and get|set values directly through existing API
    The selected area can be accessed as
        grid._selectionArea
        grid._selectionArea.LeftTopRow
        grid._selectionArea.LeftTopCol
        grid._selectionArea.RightBottomRow
        grid._selectionArea.RightBottomCol