Jeremy J Starcher wrote:
On Sun, 06 Jan 2008 20:43:06 -0800, Ajinkya wrote:
>How can I poll for serial port data using javascript ?
Within the web browser, you can't.
Yes, you can. What is required is only a fitting API that provides language
binding for (the) ECMAScript implementation(s).
Under Windows, there may be access to a scripting object that can access
the serial ports. I would ask in microsoft.public.scripting.wsh
And there is no reason why you could not use that "scripting object"
(actually an ActiveX/COM object) from within MSHTML, may it be Internet
Explorer or an HTA. There is also XUL to consider for Gecko-based UAs.
PointedEars
--
Prototype.js was written by people who don't know javascript for people
who don't know javascript. People who don't know javascript are not
the best source of advice on designing systems that use javascript.
-- Richard Cornford, cljs, <f8*******************@news.demon.co.uk>