How to interface an hardware device using javascript? [closed] - javascript

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 problem only by editing this post.
Closed 5 years ago.
Improve this question
I had developed a web application in ASP.NET MVC using C# which is used for billing purpose. But now the client had a new requirement that he need to connect swiping device so that the customers can pay using their cards.
Now the issue is that how i communicate with the device from javascript? i had tried web socket but is not succeed.Is there any ways to make this possible ?

You can use the self host Web API to communicate with the swiping device.
You can simply create a self hosted Web API to communicate with the swiping device
Make it run on the client machine
Call the API from your java script
It will work perfectly

Look at the documentation of the swiping device, it should explain how you should interface with it.
Of course there's no web browser API to interface with every imaginable peripheral device, so you're simply going to have to put your software development skills to work and create a compatibility layer.

Related

show live TV from a connectted USB DVB-T stick (on windows) on a local web page [closed]

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 problem only by editing this post.
Closed 5 years ago.
Improve this question
I want to buy a DVB-T stick which gets connect to PC and laptop by USB and has a software to play live TV on windows. What I want to do with that is to show the live TV stream from that stick on a web browser instead of the original windows software. The reason behind that is I need to use it in a digital signage program which only supports web platform for these kind of medias.
As far as I know, if I could make a html page which contains the player to show the live stream from the USB stick, the job is done, but my question is how to write that html page exactly. Any suggestion?
Thanks for paying attention to my question and helping me in advance.
This is not possible with HTML. Also PHP and JavaScript will not fit this problem. Because that are web based languages. You can not access plugin devices in any way.
The only way you can do is to write an application in C#/C++/Java which will read the usb and open it in a webview to show.

Are there any ways to integrate fingerprint biometrics on HTML5 or JavaScript? [closed]

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 problem only by editing this post.
Closed 1 year ago.
The community reviewed whether to reopen this question 10 months ago and left it closed:
Original close reason(s) were not resolved
Improve this question
I have this new project that requires fingerprint bio metrics.
A Regular fingerprint scanner device will be used but I have less idea on how to use web technologies(HTML,JS,etc...) with this device, I already know that one way to do this is through Java. I was wondering if it is possible that this could be done using basic web technologies like JavaScript, HTML5 or even PHP.
All I need to do is to save the image of the scanned fingerprint to a specific file but I am not sure if HTML5 or JavaScript alone can do this.
I need to know if this is really possible and how.
Any solutions will do.
Welcome to 2019
You can now implement Web_Authentication_API https://developer.mozilla.org/en-US/docs/Web/API/Web_Authentication_API
Firstly let me explain you the basic concept. For any external devices to interact , you need a device driver in the PC and a software that co-ordinates with the device driver to receive input and send outputs to the device.
You cannot do that with the sole HTML/JS alone.Also PHP is meant meant only for server side.
If possible your SDK/software supports uploading to internet, you can post & verify the data from the internet using PHP server.
If you prefer to go with JAVA, you can refer the below post:
How to capture biometric information on a webpage by using Java
The WebAuthn is the newest browsers feature that helps you to Authenticate users by Fingerprint Biometric on Mobile devices and Security devices on Desktop devices.

Real time web screen collaborating app using javascript or C# [closed]

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 problem only by editing this post.
Closed 7 years ago.
Improve this question
I need to create a page which can be shared across multiple users. Means while doing some stuff on my page, that should be broadcast to all the users who are joining me that time. At the same time they can also do some stuff. Something like web conferencing. I need to either use javascript or C#. Is there any API or javascript plugins or any other libraries that I can use? If there then please tell me. I don't need to share desktop just need to share only one part of a web page or only one section only like you can assume I have a particular division, there I have a canvas. On that canvas, I will type or draw something that should be broadcast to everyone.
SignalR is an open source technology built by two Microsoft employees and leverages C# and JavaScript (there is a jQuery plugin for the script side).
A good example to get you rolling would be ASP.NET MVC 3 Real Time Collaborative Apps with SignalR.

android phone which connects to web application [closed]

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 problem only by editing this post.
Closed 8 years ago.
Improve this question
I'm creating a photo capturing system by using javascript and also HTML5 for my college project. I'm thinking of creating "somehow" called a remote control by using android device to communicate to the web application open on my laptop.
maybe I make you guys confuse already,
let say the android device have a CAPTURE BUTTON. when user click on the button, it will capture the photo inside the laptop web applications. The purpose of the android device is work like a remote control when user tap on the CAPTURE BUTTON. Is there any technology can make this happen?
I have this idea is because of there's a lot of android apps which is can connects to the computer as a mouse or as a keyboard. So, I was thinking is it possible that create a application communicate with the javascript inside of my webapp.
Thank you for answering and viewing the question.
yes it is possible. You can do it by using Node.js. I have created a presentation using Node.js and by using html code. Then I open the controller on laptop and ppt on my mobile application WebView. then I am able to record and save the video automatic as slides changes in my android phone.
so by manipulating some code you can do what ever you want.

iOS notifications from web app [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
I'm writting an app in Backbone and Marrionette, and I would like to show notifications on Apple's machines. Can I do this without developing application on iOS? Some JS libraries which can to push notifications if person use Apple phone or tablet.
If you're talking about native push notifications then no. (unless you're wrapping your app in PhoneGap)
If you're talking about push notifications while the person is on the browser then yes.
I've usually rolled my own notifications using either websockets, or signalr in the .NET world, to tell the client that something has happened. There are also a couple services like pusher that can help you get something up a little faster if you don't feel like making your own implementation
No, on iOS push notification are only support by apps.
This is clearly state in the documentation, Notification Programming Guide for Websites :
Note: This document pertains to OS X only. Notifications for websites do not appear on iOS.
Basically you have to implement web side to use Push Notification. It have server side implementation.

Categories

Resources