如何覆盖 Internet Explorer 对话框?

发布于 2024-08-22 13:38:17 字数 136 浏览 1 评论 0原文

我正在寻找一种方法来覆盖例如当您单击 HTML 页面中 INPUT type="file" 元素的“浏览”按钮时弹出的对话框。 我需要抑制原始对话框并显示我自己的实现。这有可能吗?


对我来说最重要的是在应该显示对话框时获得回调。

I'm looking for a way to overwrite for example the dialog which pops up if you click on the "browse"-Button of a INPUT type="file" element in an HTML Page.
I need to suppress the original dialog and show my own implementation. Is this possible in any way ?


The most important thing for me is to get a callback when the dialog is supposed to be displayed.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

菊凝晚露 2024-08-29 13:38:17

这是可能的(例如,Google 在将图像上传到其 Picasa 网络相册时提供了这样的自定义文件选择对话框),但这需要使用 Flash。我不知道有任何无 Flash 的解决方案。

It is possible (for example, Google provides such a custom file selection dialog when uploading images to its Picasa Web Albums), but this requires using Flash. I am not aware of any Flash-free solutions.

燕归巢 2024-08-29 13:38:17

使用 Flash(如 RegDwight 提到的)或 Silverlight 创建您自己的控件。

使用 Silverlight,您还需要创建自己的上传机制,因为您将无法获得指向的文件的完整路径名。我不知道Flash中的情况如何,但我想是一样的。

Create your own control Using Flash (like RegDwight mentions) or Silverlight.

Using Silverlight you also need to create your own upload mechanism, because you will not get the full path name of the file you pointed to. I don't know how this is in Flash, but I suppose it is the same.

始终不够爱げ你 2024-08-29 13:38:17

我找到了一个捕获特定对话框的 WM_INITDIALOG 和 WM_SHOWWINDOW 事件的解决方案。

I found a solution catching WM_INITDIALOG and WM_SHOWWINDOW Events for the specific dialog.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文