浏览器在外部程序中打开文本/ xml [英] Browser opening text/xml in external program
问题描述
该解决方案必须在Firefox 。这是一个奖金,如果它在IE和Crome的作品。
我的html是从本地开发人员数据库生成的磁盘上的文件。即hrefs看起来像这样: file:// c:/a/b/c.ext
。目前,Firefox和IE展示了他们内置的XML查看器,上帝知道Chrome显示的内容(看起来像随机的XML摘录给我的)。
我不知道如果这是相关的,但是所有hrefs的类型都是< map>< area href />< / map>< / code>简单
< a href />
s。
编辑在Javascript中,任何人?
似乎不可能解决(容易)。我放弃了。
Is there a smart way to - from a browser - open hrefs to text files and XML files in an external program. My target platform is Win32 so preferably I'd have the files open in the default editor for it (as set in explorer.exe).
The solution must work in Firefox. It's a bonus if it works in IE and Crome.
My html is generated from a local developer database for files on disk. I.e. hrefs look like this: file://c:/a/b/c.ext
. Currently, Firefox and IE show their built-in XML viewer, and god knows what Chrome is showing (looks like random XML excerpts to me).
I don't know if this is of any relevance, but all hrefs are of type <map><area href/></map>
(over an image) and not just simple <a href/>
s.
Edit: is it possible in Javascript, anyone?
It does not seem possible to solve (easily). I give up.
这篇关于浏览器在外部程序中打开文本/ xml的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!