Re: getting input from local devices
Re: getting input from local devices
- Subject: Re: getting input from local devices
- From: Florijan Stamenkovic <email@hidden>
- Date: Mon, 21 Jul 2008 10:23:11 -0400
Johann,
Also, if you prefer to stick to a WebApp a opposed to a JC app, you
could make a very small, very simple JC applet that is embedded into
your web page, and does the interaction. I never do applets, but I am
convinced that there is some method that gets invoked when the applet
is loaded, you could probably use that to poll the device for data,
and then do whatever you want with it. You might even be able to
"hide" the applet, so the user never even knows they are interacting
with it...
This might require some tricky handling of data transfer from the
applet, but I think you might even manage to squeeze it into your web
app directly, without messing with a JC server counterpart as an in-
between.
When re-reading this, I see I say "could" and "might" a lot... Well,
such is the world of software :)
F
On Jul 21, 2008, at 04:40, Neil MacLennan wrote:
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 :-)
And you would get more powerful toys to play with :)
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
_______________________________________________
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