如何显示“浏览文件夹”对话框在html / javascript? [英] how to show "browse for folder" dialog in html/javascript?

查看:62
本文介绍了如何显示“浏览文件夹”对话框在html / javascript?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

< input type =" file">只允许用户浏览文件。


浏览文件夹怎么样?对话?可以用html / javascript做吗?我

找不到任何语法。如果没有,请告知

其他方法。


请指教。谢谢!!

解决方案

st * *****@gmail.com 写道:

< input type =" file">只允许用户浏览文件。

浏览文件夹怎么样?对话?可以html / javascript吗?




No.


-

David Dorward< ; HTTP://blog.dorward.me.uk/> < http://dorward.me.uk/>

Home是〜/ .bashrc的地方


st ****** @ gmail.com 写道:

< input type = "文件">只允许用户浏览文件。


它定义了一个表单字段(或控件)。其余的取决于浏览器,页面的其余部分以及可能提交表单数据的服务器,

以及可能会乱七八糟的JavaScript有它。


特别是,它是否以及如何允许用户浏览文件是

依赖于浏览器。

如何浏览文件夹呢?对话?


在我使用的所有浏览器上,当填写带有文件输入字段的表单时,我已经能够浏览文件夹

。 br />
html / javascript能做到吗?


你还没有解释什么是那个是的,你还没有告诉你你想要实现的是什么。

如果没有,请告知其他方法。



在问题出现之前,通常很难建议解决问题的方法

已知。


-

Yucca, http://www.cs.tut。 fi / ~jkorpela /

关于网页创作的网页: http://www.cs.tut.fi/~jkorpela/www.html




Jukka K. Korpela写道:

浏览文件夹怎么样?对话框?



在我使用的所有浏览器上,当填写带有文件输入字段的表单时,我已经能够浏览文件夹了。




我想要浏览文件夹要在网页中显示的对话框,请参阅
http://www.codeguru.com/vb/controls/...cle.php/c3023/

如果我们做<输入类型=" file">,我们只能查看文件,我们无法查看文件夹,我认为html标签不支持。

那么接下来的问题是这个问题的解决方法是什么?


<input type="file"> only allows the user to browse for files.

How about "browse for folder" dialog? Can html/javascript do that? I
couldn''t find any syntax for that. If not, please advise what are the
other approaches.

please advise. thanks!!

解决方案

st******@gmail.com wrote:

<input type="file"> only allows the user to browse for files.

How about "browse for folder" dialog? Can html/javascript do that?



No.

--
David Dorward <http://blog.dorward.me.uk/> <http://dorward.me.uk/>
Home is where the ~/.bashrc is


st******@gmail.com wrote:

<input type="file"> only allows the user to browse for files.
It defines a form field (or "control"). The rest is up to the browser, the
rest of the page, and the server to which the form data might be submitted,
as well as JavaScript that might mess around with it.

In particular, whether and how it allows the user to browse for files is
browser-dependent.
How about "browse for folder" dialog?
On all browsers that I have used, I have been able to browse for folder as
well when filling out a form with a file input field.
Can html/javascript do that?
You haven''t explained what "that" is, and you haven''t told what you
_really_ want to achieve.
If not, please advise what are the other approaches.



It''s usually difficult to suggest solutions to problems before the problems
are known.

--
Yucca, http://www.cs.tut.fi/~jkorpela/
Pages about Web authoring: http://www.cs.tut.fi/~jkorpela/www.html



Jukka K. Korpela wrote:

How about "browse for folder" dialog?



On all browsers that I have used, I have been able to browse for folder as
well when filling out a form with a file input field.



I want "browse for folder" dialog to show in a web page, see
http://www.codeguru.com/vb/controls/...cle.php/c3023/

If we do <input type="file">, we can only see the files, we couldn''t
see the folder, I think html tag doesn''t support that.

So the next question is what is the approach to this problem?


这篇关于如何显示“浏览文件夹”对话框在html / javascript?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆