Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 9 years ago.
Improve this question
I have a requirement wherein I need to launch an application (assumed to be installed on the user's machine) from a webpage.
I found that there are several ways of doing so, but I would like to know if this is an acceptable solution. Is it OK to execute applications from a webpage or is this some kind of an anti-pattern?
EDIT: To clarify, I did not mean that the executable will launch on loading the webpage, rather as Florian mentions, it will be on a user click, so the user knows that an executable will be launched. My question was is even this ok?
If you can do this, it is most likely a security flaw. Can you imagine if I run all your applications just because you visited my webpage?
However, you can do something like skype does: adding a protocol that your desktop application handles. This means that when the user will click on the link, it will launch the desktop application handling the protocol.
Skype's links are like this:
Skype me!
And the skype program is the default handler of the skype protocol for your operating system, so it will run it.
Related
Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 5 years ago.
Improve this question
I'm working on a chrome extension and I need to get a schedule data from outside of the extension to let the admin broadcast the schedule to the extension users. I wanted to use hapi.js but I can't afford to buy any private server. I did find free website hosting. I thought I would do a minimal website with just a login system and some pages containing the data I would want and make some get request on the extension and extract the schedule on the extension.
Is it okay like a replacement plane for the API?
For almost the same purpose I was using WordPress website with json api plugin. (https://wordpress.org/plugins/json-api/) It is super easy to install and later you can simply run fetch requests inside of your application or extension.
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 6 years ago.
Improve this question
I want to check if a user has already been into my site and downloaded the custom certificate (self-signed). I understand that javascript can't do that, but was thinking maybe a way it can check for Chrome? Since Chrome maintains a keystore?
I guess, the only way I was able to figure it out so far is by checking that the URL has https and then subsequently checking the content of the page (e.g. if certificate is untrusted the content would mention something ...) for the absence of errors related to certificate or t=for the existence of the normal content I would expect to be there... Doing that I was abel to overcome this and prompt users to download a package with the custom certificate and instructions etc... Please suggest if anyone has come across a better option.
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 have my PC extension for google chrome, the extension is something like Sync ( Bookmarks, tabs etc). In order to associate each Bookmark and tab with the PC/Desktop/Machine on which it got created/modified. For which i may have to generate my own unique id along with ( for ex:- SerialNo_myown_unique, CPU_No_Myown_unique, MAC_addr_Myownuniqueno etc). So all i want to know is, how do i generate this using Javascript, as most of the blogs and articles i explored have not given clear instructions about how to do it?
Can someone help?
node-uuid will generate RFC compilant UUID strings for you. While these won't depend on the machine they are generated on I don't see why that should be necessary. You can generate a machine uuid once when your extension is installed and associate that with a user account on your service.
Alternatively you could just handle this on your server and request an id from the server after the user logs into his or her account after the extension has been installed.
In general, what you are looking for is called device fingerprinting and is a rather large issue for privacy. That is also why it's (thankfully) rather hard and imprecise to do. The Mozilla Wiki has an interesting collection on some techniques. You can test how unique your browser configuration is on Panopticlick.
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
How to connect my fingerprint device to my Login and Register script.
my device is Digital Persona 4000b and im using PHP and MSQL in my code
I already tried searching in google but still can't find the solutions
If you want your users to use a Digital Persona to login to a web-page using their browser, they are going to need to install a browser plugin (since neither java or javascript alone wouldn't give access in that way to the usb-ports, see How to get USB devices List from Browser).
If there is such a browser-plugin, you'd need to check it's api to see how it communicates with javascript. From there on communication to the server-side results the familiar communication options (forms, ajax, etc).
You also might attempt to create a plugin yourself, have a look at One Touch for Windows SDK Java Developer Guide for example.
You can also contact the manufacturer, since you paid for the device and are going to support it in your application.
Hope this helps!
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 2 years ago.
Improve this question
I want to develop a web-based collaborative editing app: basically many users will transcribe a big mp3. The first step is to write a specification.
It seems pretty easy to do it with async communication and javascript, keeping track of the transcription an user gives and forwarding it to other users editing the same file, but I fear I might be underestimating the problem: what are the common issues this kind of problem raises?
Thanks!
You didn't specify what browsers you want to support. To do it "real-time", you can either poll the server or use Comet or WebSocket (for browsers that support it) or Flash net Socket. As with any collaborative app, I think the hardest problem is conflict resolution/keeping all sessions synchronized.
You might be interested in reading Google Wave Protocol too. It's a white paper on real-time collaborative document editing. Not for the faint of heart :D