浏览器在外部程序中打开文本/ xml [英] Browser opening text/xml in external program

查看:173
本文介绍了浏览器在外部程序中打开文本/ xml的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有一种聪明的方法 - 从浏览器 - 在外部程序中打开hrefs文本文件和XML文件。我的目标平台是Win32,所以最好是在默认的编辑器中打开这个文件(如explorer.exe中设置的)。

该解决方案必须在Firefox 。这是一个奖金,如果它在IE和Cr​​ome的作品。



我的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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆