Click to See Complete Forum and Search --> : Javascript and the Serial Port


steven01
08-03-2004, 01:49 AM
Anyone know how I can send serial commands to the COM port of the users machine using Javascript?

HaganeNoKokoro
08-03-2004, 01:57 AM
I'm pretty sure you can't. It would be a security risk for a language like JS to have such capabilities.

steven01
08-03-2004, 02:05 AM
Even if I could say launch an external application via Javascript to accomplish this?

I would be completely satisfied even if I had to custom configure each users PC to allow this as this web site will be limited to a very small number of specialised clients.

HaganeNoKokoro
08-03-2004, 02:16 AM
There seems to be a way using activeX. Check out
http://www.activexperts.com/activcomport/samples/#file007.htm

steven01
08-03-2004, 02:21 AM
Excellent work.

Thanks.