• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: getting input from local devices
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: getting input from local devices


  • Subject: Re: getting input from local devices
  • From: Johann Werner <email@hidden>
  • Date: Mon, 21 Jul 2008 09:03:14 +0200

Hi Neil,

thanks for your reply.

Am 20.07.2008 um 21:37 schrieb Neil MacLennan:

Johann,

You could either use a web app or a Java Client here. Many input devices simply emulate the keyboard and so can enter their scanned data directly into a regular INPUT element on a web page. Some Javascript here could automatically submit the form to your WOApp or do some Ajaxy stuff.

I did not think of that. That would make it really easy though only on situations when the user actively uses the device. If I want to display a page and automatically fetch input data from a device is JC the only way to go?
If I would want to stay with a web app (just can't afford the time to learn Swing & Co. at the moment) would it be the only solution to have something like a local web server running that can be accessed by some Ajax stuff on the page and triggers a script that in turn polls the device and returns the data? Seems like breaking a fly on the wheel for such (seemingly) simple situation.


jw

However, I implemented a GUI JavaClient App when I needed to use a handheld barcode scanner. It's remarkably simple to hook up your JavaClient EOs to the WOApp on the server in order to send your input data to it.

http://web.mac.com/flor385/eSwamp/software/wojc_tutorial.html

Florijan's page is all you need, but if you want I could probably resurrect what I did to get you started.

.neilmac

On 20 Jul 2008, at 16:47, Johann Werner wrote:

Hi list,

I am just thinking about what possibilities exist to get input data from a device that is connected locally to the client (e.g. a security card reader or a barcode scanner) into WO. An app deployed as Java Client could easily interact with local devices but what if a have a "normal" WO app? AFAIK JavaScript cannot access resources other than the webbrowser itself and I didn't find any helpful information on that matter.
Did anyone solve that problem or has any insight on how it could be done? I can't imagine that this is a totally uncommon situation.


jw

_______________________________________________ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden

Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: getting input from local devices
      • From: Neil MacLennan <email@hidden>
References: 
 >getting input from local devices (From: Johann Werner <email@hidden>)
 >Re: getting input from local devices (From: Neil MacLennan <email@hidden>)

  • Prev by Date: Re: Generating cross-platform deployable war
  • Next by Date: WO 5.2.3 on a 64 bits architecture.
  • Previous by thread: Re: getting input from local devices
  • Next by thread: Re: getting input from local devices
  • Index(es):
    • Date
    • Thread