开发者

Hardware access through JavaScript [closed]

开发者 https://www.devze.com 2023-01-01 03:16 出处:网络
Closed. This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one p开发者_如何学运维roblem only
Closed. This question needs to be more focused. It is not currently accepting answers.

Want to improve this question? Update the question so it focuses on one p开发者_如何学运维roblem only by editing this post.

Closed 9 years ago.

Improve this question

Can we access the hardware service routine using JavaScript?


With the JavaScript inside your browser, No.

However JavaScript can also be used on the server-side, as they guys at Node.js are doing (just to take one example). In this case, you would have access to server-side resources and I/O, using JavaScript as a scripting language.


one more important thing : Javascript access to the browser is limited

I dont think so its possible via javascript because according to me its client side scripting language. But i thin with serverside scripting you can access hardware of server machine(not sure with this)

read more about this : http://www.webdeveloper.com/forum/showthread.php?t=137449


If you're interested in mobile app development you may find PhoneGap interesting. It's free at the moment and it allows to develop html5 css javascript apps in a mobile multiplatform wrapper that provide javascript access to hardware features like gps, compass, accelerometer, storage...etc.


If you need access to the entire file system on the client, watch folders for changes, start applications, encrypt or sign documents, connect to USB devices, etc. please have a look at JSFS.

It allows secure and unlimited access from your web page to computer resources on the client without using a browser plugin technology like AcitveX or Java Applet. However, a peace of software has to be installed too.

In order to work with JSFS you should have basic knowledge in Java and Java EE development (Servlets).

Please find JSFS here: https://github.com/jsfsproject/jsfs. It's free and licensed under GPL.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号