1

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.

4

3 回答 3

1

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

使用 Silverlight,您还需要创建自己的上传机制,因为您不会获得指向文件的完整路径名。我不知道这在 Flash 中是怎样的,但我想它是一样的。

于 2010-02-24T16:48:53.087 回答
1

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

于 2010-02-24T15:01:50.310 回答
0

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

于 2010-03-12T13:09:41.000 回答