• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

copy table cell contents to clipboard

 
Ranch Hand
Posts: 104
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hello,
in my application,i want to select a single cell(which i have worked arround)and copy(ctrl+c) it's contents to clipboard.through keytrap i got the selected cell's value.
i have the code somewhat as:
tempval = newCell.createTextRange();
where newCell is the cell object.
in the documentation i have read that the createTextRange works only for IE on windows.for that reason i want some other way out to this,
how do i do this?
this is a bit urgent
thanks in advance
-vrunda
 
Vrunda Joshi
Ranch Hand
Posts: 104
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hello,
In IE i got the thing working with
clipboardData.setData("text", newCell.innerText);
How do i do the same with Netscape which says "clipboardData" is not defined.
thanks in advance,this is a bit urgent
-Vrunda Divekar
 
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
That is only an IE based function sorry to say. It is not possible to do it in Netscape
 
Vrunda Joshi
Ranch Hand
Posts: 104
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hello,
thanks for the reply,it's ok that the clipboardData does not work with netscape.
is there any way out to get the selected cell data so that i can store it.
thanks in advance
-vrunda
 
reply
    Bookmark Topic Watch Topic
  • New Topic