views:

81

answers:

3

I need to read the serial port as an input for a web based applicaton. I know that the browser can't do it, but if I build an DLL and send it to my client, can I access this DLL and read de serial port with an java script or i will need something like ActiveX?

+1  A: 

The active X Control will be able to access the serial port.

Here is a link on how to create one and access it through JavaScript

http://dotnetslackers.com/articles/csharp/writinganactivexcontrolincsharp.aspx

(You don't need .net to write it, but this is what the example uses).

Kevin
+1  A: 

JavaScript cannot (and should not) call DLLs due to security issues.

You should be looking at ActiveX

Raj More
A: 

It is also possible to use JNI within a Java applet. This may be an alternative to ActiveX, but the little I know about it, this technique may be a pain.

Sparafusile
Well it's possible to do it with Java in general, but from an applet inside a web browser the security manager won't allow it.
Pointy
You would need a signed applet. That's where the pain is.
Sparafusile