Victor Fan wrote:
Mohit Sindhwani wrote:
That's interesting - I didn't really think that this would usually be
acceptable, but I guess that there are use cases for this. In fact, the
only other way I knew to launch a local application was a bit silly -
either use a plugin or send a file of a format that is registered to
your PC application - but there are numerous imponderables with that
Thank you Mohit
Can you give me some more details about these?
It's a silly approach (even in my mind)... basically, the idea is when you send a ".pls" file, the browser asks if it should load the file with WinAmp (since it's a playlist) or a '.doc' file with Word and so on.
Now, if you had a file type 'bcft' (say, BC File Type) which is registered in Windows to being launched by an application called "BC.exe" then if you click on the link on the website and it sends the file "something.bcft" (with the correct MIME type - which may need to be configured on the webserver). When the web browser encounters this file, it should ask to either save the file or open it with the registered application (BC.exe) installed on the PC.
Things that may get in the way:
1. The application must be installed on the PC
2. It must be registered to handle the file of that format
3. The web server will need to send the right MIME type
4. There may be some configuration in the web browser to deal with that MIME type
5. There may be some conflict over the file extension and may get in the way.
6. At least a few other things that I have not thought about...
I think it _may_ work, but there may be many things to think about... and this will not return data to the web browser (if that's needed)