473,396 Members | 1,900 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Copy to clipboard for Ext elements

2
I have written the code to copy to clip board option but when i am trying to paste the content which has Ext.pivotGrid only text is getting copied not the grid. Also alignment is different from the web page.

Code is,

Expand|Select|Wrap|Line Numbers
  1. var div = document.getElementById('divId');
  2. div.contentEditable = 'true';
  3. var controlRange;
  4. if (document.body.createControlRange) {
  5. controlRange = document.body.createControlRange();
  6. controlRange.addElement(div);
  7. controlRange.execCommand('Copy');
  8. }
  9. div.contentEditable = 'false';
Feb 15 '12 #1
2 2071
Shif
2
Can anybody help me on resolving this issue?


Thanx in advance
Feb 16 '12 #2
gits
5,390 Expert Mod 4TB
what would you expect to have pasted and where do you paste it?
Feb 16 '12 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: xyz | last post by:
I have a menu item to handle clipboard actions (cut, copy, paste). When I paste text that I copied from a Hungarian web page, the display looks normal on my RichTextBox, but the text retrieved from...
2
by: Marc Elser | last post by:
Hi, I have a html form which is created by a cgi-script which sometimes opens a popup window. This popup window reads it's content from a hidden field in the openers form and writes it through...
3
by: Tor Inge Rislaa | last post by:
Copy, Cut and Paste How to code the Copy, Cut and Paste functionality in VB.NET. In VB 6.0 I used the following code: 'For Copy Clipboard.Clear Clipboard.SetText...
23
by: Over | last post by:
Hi it's possible with language C, (Mingw or Djgpp) copying the clipboard of WinXp into file.txt? which function must be use. Thanks
5
by: Vivekananda | last post by:
I have a byte array. I need to copy alternate elements 0,2nd,4th ,6th ,8th elements ......and so on from the source byte array to new destination array. How do I do that in C#?
3
by: Bruce A. Julseth | last post by:
I want to copy to a clipboard from my webpage using data that is available from an hidden variable on <inputstatement. Using window.clipboardData.setData("Text", "This text value"); in a...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.