开发者

GWT and setting "file://" on HREFs

开发者 https://www.devze.com 2023-01-21 06:39 出处:网络
Greetings, I\'m using GWT and trying to set an href to a file uri (to a network share) and insert it into a cell of a FlexTable and can\'t seem to make it work.

Greetings,

I'm using GWT and trying to set an href to a file uri (to a network share) and insert it into a cell of a FlexTable and can't seem to make it work.

I have inspected the dynamic anchor in chrome (inspector) and the format is correct but nothing happens when I click on it.

I have 开发者_运维技巧tried setting through an Anchor, HTML object, calling cell.setHTML directly and also tried setting it outside the flex table but all to no avail.

Note that I can create a simple HTML file that looks like:

<html>
<head/>
<body>
  <a target="_blank" href="file://///server/share/myfile.txt">My File</a>
</body>
</html>

and have it work correctly across Chrome, IE, firefox when I load it on the address bar.

Any thoughts? TIA


"For security purposes, Mozilla applications block links to local files (and directories) from remote files."1

0

精彩评论

暂无评论...
验证码 换一张
取 消