473,763 Members | 2,375 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

List files of a directory in client side

Dear Folks

I am programming a page that asks user a directory name and lists files
of type *.xls in the directory in client's machine. He/She will then
select some files to upload them to the server.

Is there any way to ask a directory name and then list the files of
that directory in client's machine? The typical browser that is used is
IE but I am not allowed to use ActiveX objects.

I found http://tinyurl.com/a4hhs the message talked about it but it
seems it is about server side file listing not client side.

Any help is highly appreciated.

Regards

Jul 23 '05 #1
3 14095
VK
> Is there any way to ask a directory name and then
list the files of that directory in client's machine?
The typical browser that is used is
IE but I am not allowed to use ActiveX objects.


No.

You can:
1) Use properly signed Java swing applet with JFileChooser.

2) Buy a 3rd party signed object/plugin.

In both above cases you're still dependable on user decision - grant
permissions or not.

3)
<form method="post" action="action. cgi" enctype="multip art/form-data">
Please choose XLS files you want to download:<br>
<input type="file" name="file1"><b r>
<input type="file" name="file2"><b r>
...
</form>

Jul 23 '05 #2
ASM
Hamed wrote:
Dear Folks

I am programming a page that asks user a directory name and lists files
of type *.xls in the directory in client's machine. He/She will then
select some files to upload them to the server.

Is there any way to ask a directory name
because you know exactly the path of this directory ?
on a foreign machine ?
and then list the files of
that directory in client's machine? The typical browser that is used is
IE but I am not allowed to use ActiveX objects.

I found http://tinyurl.com/a4hhs the message talked about it but it
seems it is about server side file listing not client side.


all what I know is
<form>
Select a file <imput type=file> and validate (button)
</form>

--
Stephane Moriaux et son [moins] vieux Mac
Jul 23 '05 #3
Hamed wrote:
I am programming a page that asks user a directory name and lists files
of type *.xls in the directory in client's machine. He/She will then
select some files to upload them to the server.

Is there any way to ask a directory name and then list the files of
that directory in client's machine?


Yes, use

<input
type="file"
name="..."
accept="applica tion/vnd.ms-excel,applicati on/msword">.

It may not filter for Excel files as it should, but at least the user
can select the file. And, more important, it works with plain HTML.
PointedEars
Jul 23 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
2183
by: Bill Manring | last post by:
In an ASP.NET web application, I am using the standard list box server control and I am adding items to with client side script. When the page posts back, the added items are not available on the server. What do I have to do to make the items available on the server after a post back
4
1776
by: Clay Wilcox | last post by:
Can anyone assist in converting this sample from msdn into c#? #include <windows.h> #include <userenv.h> DWORD CALLBACK ProcessGroupPolicy( DWORD dwFlags, HANDLE hToken, HKEY hKeyRoot, PGROUP_POLICY_OBJECT pDeletedGPOList,
1
2462
by: PB | last post by:
I have an aspx with 4 Drop-Down list boxes on it. All the list values are hard-coded in the aspx. I want a client-side JavaScript function to select a value in each of those DDLs. I can create the JavaScript function and wire it up to a link - but I need help with the syntax required to select one of the values in each Drop-Down list.
1
806
by: feng | last post by:
I have a VB.Net program that consumes a web service. When calling the web service from my program, I would like to be able to capture and evaluate the request xml going out and the response xml that comes back. I think this is very important in debugging (that's what I am doing now). But I couldn't figour out how to do it. Could some one show me how to capture these files from the client side? Thanks a million! Feng
4
4093
by: math.kiran | last post by:
I have a list box which gets populated client side (Javascript). Now when I submit the page - I need to capture all the list item and store it in database. What is the elegant way to do it in asp.net? Thanks KM
2
1640
by: Eli Silverman | last post by:
I am attempting to develop a form that lists available speakers for a meeting. One of my clients can have as many as about 800 contracted speakers and a variety of 100 topics that they can speak on. What I am trying to create is a form that has a text box in which you can type in part of a speakers name. After hiting enter I want to query our SQL database for the speakers with the matching last names and populate a speaker select box...
2
1815
by: Tanmaya Kulkarni | last post by:
Hi, Since C# / VB.Net code executes on the server, all the path given during file creation point to physical path on server. Is there some mechanism where were can create text files on the client. I want these files to be different for each client. TIA, Tanmaya
9
8108
by: shailaja.sheel | last post by:
Hi , This is my first attempt to do some html/javascript programming and I am totally lost. I have a questionaire form and when user clicks Submit, I want to save the data in XML file on client side. User will then sync all these xml files to a PC later. From all the research I have done so far, its being indicated that client side file creation is not possible - is that true? If yes, then I have a huge problem - is there anyway I can...
0
9386
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10145
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9998
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9938
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9822
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8822
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7366
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5270
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
3
3523
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.