English 中文(简体)
确保<a href=“当地档案” 在浏览器之外开放
原标题:Make sure <a href="local file"> is opened outside of browser

关于内联网网络应用(文件管理),我要列出与某个客户有关的档案清单。 由此形成的超文本与此类似:

<a href="file:///server/share/dir/somefile.docx">somefile.docx</a>
<a href="file:///server/share/dir/someotherfile.pdf">somefile.pdf</a>
<a href="file:///server/share/dir/yetanotherfile.txt">yetanotherfile.txt</a>

罚款。 简言之,在点击文本档案(或图像档案)时,因特网探索者(我猜测大多数其他浏览器)坚持在浏览器中显示,而不是在相关申请(例如,笔记)上打开档案。 就我们而言,这是不受欢迎的行为,因为它不允许用户篡改档案。

是否对这一行为做了一些工作(例如:<a href=”file http:///. ...... ...... open=“external”>)? 我知道,这是一件针对浏览器的物品,只有电子计算机的解决方案将是罚款的(它毕竟是一个内联网应用程序)。

问题回答

你们的无国界医生组织是否只是与你服务器上的东西做一片? 这使我无法安全......

d 我建议允许用户在当地进行核对,并使用数据库或类似数据库,让人们在新的草案中进行核对。 应在实际写给服务器档案系统之前,对赛义德的草案进行核实和验证。

我只是测试了这一情况,似乎在工作(IE6,而不是FF或 Chrome):

<HTML>
<script language="JavaScript">
  function startWord(strFile)
  {
    var myApp = new ActiveXObject("Word.Application");
    if (myApp != null)
    {
      myApp.Visible = true;
      myApp.Documents.Open(strFile);
    }
  }
</script>
<a href="javascript:startWord( file:///server/share/dir/test.doc )">test.doc</a>.

创立:here





相关问题
CSS working only in Firefox

I am trying to create a search text-field like on the Apple website. The HTML looks like this: <div class="frm-search"> <div> <input class="btn" type="image" src="http://www....

image changed but appears the same in browser

I m writing a php script to crop an image. The script overwrites the old image with the new one, but when I reload the page (which is supposed to pickup the new image) I still see the old one. ...

Firefox background image horizontal centering oddity

I am building some basic HTML code for a CMS. One of the page-related options in the CMS is "background image" and "stretch page width / height to background image width / height." so that with large ...

Separator line in ASP.NET

I d like to add a simple separator line in an aspx web form. Does anyone know how? It sounds easy enough, but still I can t manage to find how to do it.. 10x!

热门标签