SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Enthusiast nutcracker's Avatar
    Join Date
    Jun 2006
    Location
    Bangalore, India
    Posts
    30
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Clipboard problems

    Hi,
    I'd like to know about the structure of clipboard data so that i could begin to manipulate it. What i need to do is to copy the data from an excel sheet and paste this data into a table so that each cell from excel corresponds to a cell in my HTML table.
    So what happens when you copy data from an excel sheet. What is the format that it is stored in the clipboard.
    I've seen the DOM clipboardData object and i'm nearly there with the solution. Just a few more nudges would be appreciated.
    Peace out,
    Tony.

  2. #2
    Programming Since 1978 silver trophybronze trophy felgall's Avatar
    Join Date
    Sep 2005
    Location
    Sydney, NSW, Australia
    Posts
    16,603
    Mentioned
    24 Post(s)
    Tagged
    1 Thread(s)
    Web pages don't have a clipboard so there is no DOM clipboard object.
    JScript in Internet Explorer provides access to the clipboard but other browsers do not even allow the web page to know if they are running on a platform that has a clipboard or not let alone provide access to the clipboard if there is one.

    If you are working on an intranet application then you can use JScript to access the clipboard but if you are working on a web page then you will not know if a clipboard even exists.
    Stephen J Chapman

    javascriptexample.net, Book Reviews, follow me on Twitter
    HTML Help, CSS Help, JavaScript Help, PHP/mySQL Help, blog
    <input name="html5" type="text" required pattern="^$">


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •