Click here to Skip to main content
15,921,941 members
Home / Discussions / Web Development
   

Web Development

 
Generalalternative to javascript Pin
brian554-May-05 9:46
brian554-May-05 9:46 
GeneralRe: alternative to javascript Pin
Scott Serl4-May-05 20:51
Scott Serl4-May-05 20:51 
GeneralRe: alternative to javascript Pin
brian555-May-05 2:15
brian555-May-05 2:15 
GeneralRe: alternative to javascript Pin
Scott Serl5-May-05 17:21
Scott Serl5-May-05 17:21 
Generalinplace expansion Pin
vivekananda tadala4-May-05 7:16
vivekananda tadala4-May-05 7:16 
GeneralRe: inplace expansion Pin
vivekananda tadala4-May-05 7:17
vivekananda tadala4-May-05 7:17 
GeneralRe: inplace expansion Pin
Brian Van Beek4-May-05 8:29
Brian Van Beek4-May-05 8:29 
GeneralBrowsers, file associations, content-types: HELP!! Pin
Steve Kearon4-May-05 1:49
Steve Kearon4-May-05 1:49 
I’m trying to understand how a regular windows application can be started when the user clicks on a link to a particular filetype in a browser.

Background (in case its important)

I have a normal windows app which has registered its filetype (say “.xyz”) so that double-clicking on a “.xyz” file in Windows Explorer opens the “.xyz” document in my application. This is done by a few registry keys:

HKEY_CLASSES_ROOT/.xyz “MyPrivate.Doc”
HKEY_CLASSES_ROOT/MyPrivate.Doc/shell/open/command “<path to="" app="">”

(I’ve omitted other entries under HKEY_CLASSES_ROOT/MyPrivate.Doc)

The files happen to be XML data.

---What happens when I click on a link to a “.xyz” file in Internet Explorer?

If the “.xyz” file is on my system, then NOTHING happens. If, however, I right click the link and copy shortcut, and paste it into the browser address bar, my application gets run fine. I find EXACTLY the same behaviour if the link is to a “.doc” file – MSWord gets run (or not).

If the “.xyz” file is on a different server, then while a link to a “.doc” file correctly runs MSWord, but “.xyz” files simply get displayed as pretty-printed XML text.

My theory (based on trying to read up on this) …

IE is looking at the file content. Since a “.doc” is binary its falling through a bunch of tests and choosing the system file association of “.doc” to run MSWord.

Since an “.xyz” file contains XML its being identified as text so IE decides it can display it itself.

So my question is: how can I tell Internet Explorer (& hopefully ALL browsers) that my application is the proper handler for files of type “xyz” ?

I believe this has got something to do with mime-types (content-types) but I’m unclear how to define these. I see mention of telling the external server the content type of these files. Is it not possible to perform this association from within my application?

Why is IE’s behaviour for local files different from its handling of remote files?
GeneralJS: calling another HTML function Pin
The_Server3-May-05 23:22
The_Server3-May-05 23:22 
GeneralRe: JS: calling another HTML function Pin
The_Server4-May-05 1:36
The_Server4-May-05 1:36 
GeneralInternet Information Services 6.0 Migration Tool Pin
Mastakilla1233-May-05 21:34
Mastakilla1233-May-05 21:34 
Generalcreate new folder in web site Pin
ABBASI_RA3-May-05 15:49
ABBASI_RA3-May-05 15:49 
GeneralRe: create new folder in web site Pin
Dan_P3-May-05 19:07
Dan_P3-May-05 19:07 
Generaldefault buttons Pin
cmarmr3-May-05 4:55
cmarmr3-May-05 4:55 
GeneralRe: default buttons Pin
Dan_P3-May-05 19:01
Dan_P3-May-05 19:01 
GeneralJavascript Keyboard Pin
totig2-May-05 22:00
totig2-May-05 22:00 
GeneralRe: Javascript Keyboard Pin
illmatik4-May-05 13:08
illmatik4-May-05 13:08 
GeneralRe: Javascript Keyboard Pin
totig4-May-05 20:29
totig4-May-05 20:29 
QuestionHow to deploy .msi ? Pin
Yeast272-May-05 21:32
Yeast272-May-05 21:32 
GeneralCommon functions Pin
killerspam2-May-05 4:08
killerspam2-May-05 4:08 
GeneralViewState problem... Pin
brian552-May-05 2:13
brian552-May-05 2:13 
GeneralRe: ViewState problem... Pin
Mike Ellison2-May-05 2:46
Mike Ellison2-May-05 2:46 
GeneralRe: ViewState problem... Pin
brian552-May-05 10:23
brian552-May-05 10:23 
GeneralRe: ViewState problem... Pin
Mike Ellison2-May-05 10:34
Mike Ellison2-May-05 10:34 
Questionhow to decript the data in asp Pin
chandan sharma2-May-05 1:59
chandan sharma2-May-05 1:59 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.