473,320 Members | 2,112 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Web Browser File Association

With a WinForms app I know how to configure the registry to understand a
specific file association so that it is associated with a given application.

But how does one do this with a web browser?

Say that one creates a new file type called ".abc". If the user clicks on a
".abc" file on a web page, how does one tell both Internet Explorer and
Mozilla Firefox to utilize a specific WinForms app if the user chooses "Open"?

--
Robert W.
Vancouver, BC
www.mwtech.com

Jun 3 '06 #1
2 2287
You are forgetting a very important thing: Web applications cannot
access the registry on the client's computer. Desktop applications can
do that because they are running on the client's computer already and
have access to *all* the resources on the computer. The only way you
can create the associations you want is either:

Option 1
When your user downloads the file, and they try to open it, Windows
brings the unknown file type thing and asks the user to select an
application with which to open the file. Your user then selects the
application they want and clicks on 'always use this application to
open files of this type' or something like that. This is all obviously
totally out of your own control.

Option 2
You can distribute a small desktop application which creates and
registers the file type '.abc'. can even be an ActiveX control on your
web pages. but this is not desirable.

hope this helps

Jun 3 '06 #2
Okay, maybe I didn't ask the right question. The filetype I've constructed
is actually just an XML file with a different file extension. When I load a
sample on my website and let the user click on it, what happens is that the
XML file itself appears like a text file, rather than letting the user Open
or Save it.

How can I change this?

--
Robert W.
Vancouver, BC
www.mwtech.com

"ta****@gmail.com" wrote:
You are forgetting a very important thing: Web applications cannot
access the registry on the client's computer. Desktop applications can
do that because they are running on the client's computer already and
have access to *all* the resources on the computer. The only way you
can create the associations you want is either:

Option 1
When your user downloads the file, and they try to open it, Windows
brings the unknown file type thing and asks the user to select an
application with which to open the file. Your user then selects the
application they want and clicks on 'always use this application to
open files of this type' or something like that. This is all obviously
totally out of your own control.

Option 2
You can distribute a small desktop application which creates and
registers the file type '.abc'. can even be an ActiveX control on your
web pages. but this is not desirable.

hope this helps

Jun 3 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Allen | last post by:
I have installed the Updater Application Block, and then I should Deploy the QuickStarts. " Install the QuickStarts After you install the Updater Application Block, you should install the...
6
by: Nak | last post by:
Hi there, I am implementing file association from within my application, association that occurs after installation. Anyway, I remember a while back seeing a key in the registry that was used...
28
by: Tim Daneliuk | last post by:
I have a program wherein I want one behavior when a file is set as executable and a different behavior if it is not. Is there a simple way to determine whether a given named file is executable...
6
by: ernesto.tejeda | last post by:
Hello, I have a couple of questions regarding the loading of .js files for the browser and would like anyone to point me wher to find the answer (or if you know the answer and tell me will do just...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.