Danny wrote:
There is no access to the clipboard object on the client environment, with the
sole exception of IE dataTransfer object which does allow it, so you'd have to
be a bit more specific. If you mean to have it cross by means of some shared
object daemon or such from browser, no dice, you'd still need to use the
clipboard on most if not all, and depending on the page, it may be big or not.
Danny
Ok - is what I'm trying to do is simple integration with a third-party
web application. They have an 'Action' button on all pages that they
can associate with a JS function. Our application is very proficient
at parsing text provided it is in some reasonably standard structure.
Is what I am trying to do is have a JS function that can be called from
any page in their system that will provide a reasonable representation
of the data on the screen. I need something close to
document.body.innerText; the problem with this function is that it
strips spacing from tables so we can't get consistent layout.
The consistent layout I am looking for would be the same as if you did
the following on any page:
1) Select all
2) Copy
3) Paste to notepad
Is there a function or process that will retrieve all text and retain
formatting?