on the form field, and when you get the second tilde, call
this.form.submit() to submit the form.
Cheers,
barneyb
> -----Original Message-----
> From: Tony S [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, January 06, 2004 1:21 PM
> To: CF-Talk
> Subject: SOT: Interesting _javascript_ Question
>
> Well, at least it's interesting to me. ;p
>
> I have an application that uses a lot of bar code scanner input via a
> keyboard wedge. By programming the scanner to append a
> carriage return to
> the end of the scan, forms will get submitted (with IE anyway) or with
> some _javascript_, the focus will be moved to the next field
> ready fror the
> next scan...
>
> I have a situation where my application will be used but the scanners
> cannot be programmed to add the CR to the end. Instead, they
> will always
> prepend and append a tilde to the bar code (~23545252525~).
>
> Is there any way, via _javascript_, to get that final tidle
> replaced with a
> carriage return so the "form submit" will work with a scan? It doesn't
> likely, but I thought I'd ask...
>
> ** Tony Schreiber Man and Machine, Ltd.
> mailto:[EMAIL PROTECTED] **
> ** Webmaster, IS300.NET
> http://www.is300.net/ **
> ** Developer, Simple Message Board
> http://www.simplemessageboard.com/ **
>
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

