clipboard.js

Provides access to the OS clipboard so that data can be copied to it (using a flash plugin).

Author

Aaron Newton <aaron [dot] newton [at] cnet [dot] com> Original source: http://www.jeffothy.com/weblog/clipboard-copy/

Dependencies

MootoolsMoo.js, <Utilities.js>, Common.js, Array.js, String.js, Element.js, Function.js
CNET(optional) element.forms.js
Summary
clipboard.jsProvides access to the OS clipboard so that data can be copied to it (using a flash plugin).
ClipboardProvides access to the OS clipboard so that data can be copied to it (using a flash plugin).
Properties
copyFromElementCopies the selected text in an element to the clipboard.
copyCopies a string to the clipboard.
Change Log$Source: /cvs/main/flatfile/html/rb/js/global/cnet.global.framework/common/js.widgets/clipboard.js,v $ $Log: clipboard.js,v $ Revision 1.2 2007/05/16 21:09:26 newtona fixed element reference in clipboard (added $())

Clipboard

Provides access to the OS clipboard so that data can be copied to it (using a flash plugin).

Summary
Properties
copyFromElementCopies the selected text in an element to the clipboard.
copyCopies a string to the clipboard.

Properties

copyFromElement

Copies the selected text in an element to the clipboard.

Arguments

elementthe element that has selected text.

copy

Copies a string to the clipboard.

Arguments

text(string) value to be copied to the clipboard.

Change Log

$Source: /cvs/main/flatfile/html/rb/js/global/cnet.global.framework/common/js.widgets/clipboard.js,v $ $Log: clipboard.js,v $ Revision 1.2 2007/05/16 21:09:26 newtona fixed element reference in clipboard (added $())

Revision 1.1 2007/05/16 20:09:41 newtona adding new js files to redball.common.full product.picker.js now has no picklets; these are in the implementations/picklets directory ProductPicker now detects if there is no doctyp and, if not, sets the position of the picker to be fixed (no IE6 support) small docs update in element.cnet.js added new picklet: CNETProductPicker_PricePath added new picklet: NewsStoryPicker_Path new file: clipboard.js (allows you to insert text into the OS clipboard) new file: html.table.js (automates building html tables) new file: element.forms.js (for managing text inputs - get selected text information, insert content around selection, etc.)

My Object Oriented javascript.
Contains common implementations for custom classes.
function $A(array,
start,
length)
returns a copy of the array.
Same as Array.copy, but as function.
function $each(iterable,
fn,
bind)
Use to iterate through iterables that are not regular arrays, such as builtin getElementsByTagName calls, arguments of a function, or an object.
Contains Array prototypes, $A, $each
Contains String prototypes and Number prototypes.
function $(el)
returns the element passed in with all the Element prototypes applied.
Contains useful Element prototypes, to be used with the dollar function $.
Contains Function prototypes and utility functions .
Handles numerous element functions for editing text.