Hi Johann,

If you're thinking about running local webservers, Ajax and other scripts then it probably wouldn't take much more to learn a little Swing and JavaClient :-)

In response to your first question I don't think that any web page in a browser can access any devices. I'm pretty sure that's outside its sandbox.

Another, less complicated, alternative might be a recurring cron/ LaunchAgent script on your local machine using a language of your choice, AppleScript, PHP, Perl, Java that polls your input device then sends either an HTTP GET or POST request to your WOApp submitting the device data as the payload.

.neilmac


On 21 Jul 2008, at 08:03, Johann Werner wrote:

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.

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 protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to