File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes HTML, CSS and JavaScript and the fly likes Javascript onPaste Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Javascript onPaste" Watch "Javascript onPaste" New topic
Author

Javascript onPaste

Abiodun Adisa
Ranch Hand

Joined: Jan 17, 2002
Posts: 495
is there a way i can implement onPaste in Javascript?
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
Not sure what your question is... Some browsers support it.

Eric
Abiodun Adisa
Ranch Hand

Joined: Jan 17, 2002
Posts: 495
The question is , how do implement onpaste in Javascript, onpaste exist for some browser but not in all browsers, I am trying to write a javascript implementation of onpaste
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
You can find onpaste here: http://msdn.microsoft.com/en-us/library/ms533051.aspx

Still do not understand your question. You are trying to write a version of onpaste for browsers that do not support onpaste?

I doubt you would get a perfect solution. I am sure if you googled for it you can find other people's attempts at it.

Why do you want to use onpaste?

Eric

Abiodun Adisa
Ranch Hand

Joined: Jan 17, 2002
Posts: 495
Actually i am using this JSF element <h:inputText>, it does not have onpaste as one of its attributes, so i need to write a javascript function for onpaste
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6


Eric
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Javascript onPaste
 
Similar Threads
Capturing Cntrl +V of Mouse
dynamically increasing/decreasing textarea size
Event when text is pasted into text-input, using mouse
javascript regular expression related problem.
onpaste="return false;" is not working for <h:inputText>