Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Trapping a Paste Event on an Input Box
Message
From
06/04/2002 08:18:01
 
 
To
28/03/2002 03:05:18
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
00638289
Message ID:
00641774
Views:
19
>I am writing a web based application. Data is read from a Barcode reader. When a new value is read in the system should detect that a value has been entered. I can't see which event to monitor on the input.
>
>script
>function checkbarcode (value) {
> //Some stuff to read the barcode
>}
>script
>
>body
>
>body
>
>The problem is that none of the keypress events will work because it is an input from the barcode reader.
>The onchange event wont work because I am not loosing focus.
>
>What I need is a mechanism to detect when the contents of the input box has changed, but retaining focus on the input box.
>
>Mike

Why not try
<input onpaste="checkbarcode(this.value)"
Note that this DOES NOT work with NS6.2, however works good with all IE versions from IE5

HTH
Zlatin Zlatev,
MCSD (VS6)

Make solutions, not programs!

Previous
Reply
Map
View

Click here to load this message in the networking platform