English 中文(简体)
使用<a href=......>的地方档案
原标题:Get local file using <a href=... in Firefox

然而,我想得到我的当地档案。 因此,我在 *.html档案中说:

<a href="file:///home/dawid.lenkiewicz/232889_kwiecien.csv" type="application/excel" class="excelLink">

但它没有工作。 但是,如果我只是把“文件”复制成新窗口,那么我就掌握了我的档案。 如何在我的申请中解决这一问题?

问题回答

http://kb.mozillazine.org/Links_to_ local_pages_don%27t_work”rel=“nofollow” 你们需要创建用户。 js file within Youtus ,有以下条目:

user_pref("capability.policy.policynames", "localfilelinks");
user_pref("capability.policy.localfilelinks.sites", "http://localhost http://127.0.0.1");
user_pref("capability.policy.localfilelinks.checkloaduri.enabled", "allAccess");

应确定。

但是,你也可以使用相对途径查阅你的档案。 或者把它放在你的网络服务器中,因为你可以向他人展示网站,这更可取。

出于安全原因,Gandre无法使用这一功能。

In a development environment, I would suggest setting up a simple web server such as Apache, and running everything through that. You can use something like XAMPP to get up and running quickly.





相关问题
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!

热门标签