473,387 Members | 1,510 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Server side file browser

I want the users be able to browse and select files on the server side.
Is there any good free or not very expensive commercial javascript package I could use?

--
Yuri.
Sep 18 '07 #1
5 7840
Yuri Shtil wrote:
I want the users be able to browse and select files on the server side.
Is there any good free or not very expensive commercial javascript
package I could use?

--
Yuri.
My understanding is that javascript only works on what is downloaded
into the browser: you must arrange to download all the filenames by some
server side scripting. I would suggest PHP as teh most accessible
language, but anything will do..

Then you can use javascript and HTML to navigate and download them.
Sep 18 '07 #2
The Natural Philosopher wrote:
Yuri Shtil wrote:
>I want the users be able to browse and select files on the server side.
Is there any good free or not very expensive commercial javascript
package I could use?

--
Yuri.
My understanding is that javascript only works on what is downloaded
into the browser: you must arrange to download all the filenames by some
server side scripting. I would suggest PHP as teh most accessible
language, but anything will do..

Then you can use javascript and HTML to navigate and download them.
You are correct. I know how to send a script from the server. I am looking for an existing javascript code that would display a file selector from the data provided by the server.
Sep 18 '07 #3
Yuri Shtil <ys****@cisco.comwrote:

>You are correct. I know how to send a script from the server. I am looking
for an existing javascript code that would display a file selector from the
data provided by the server.
I wouldn't use Javascript, I'd show the files in a <select...box.

--
Tim Slattery
Sl********@bls.gov
http://members.cox.net/slatteryt
Sep 18 '07 #4
Tim Slattery wrote:
Yuri Shtil <ys****@cisco.comwrote:

>You are correct. I know how to send a script from the server. I am looking
for an existing javascript code that would display a file selector from the
data provided by the server.

I wouldn't use Javascript, I'd show the files in a <select...box.
Me too.

That's what I do.
Or even easier, arrange a bunch of URL's pointing at the downloadable files.
Sep 18 '07 #5
I am looking for an existing javascript code that would display a file selector from the data provided by the server.
- JavaScript will only use a file selector dialog box to allow access
to the filesystems the user has access to locally (e.g. hard drive,
CDs, mounted network volumes...). You could therefore not display one
from the webpage itself to access your server.

- You could make a DOM-based one which basically would looki like a
file selector but in reality be cleverly designed HTML, and that also
means sending back the directory listings with the script. You could
use AJAX/XMLHttpRequest to request the directory listings dynamically
of you wanted. Obviously, this is a long-winded way of doing things;
but it is possible. Fish around for "file selector" with optional
keywords AJAX, DOM, HTML

- Other options include using Java applets etc... mass-programming
your way through the problem what. Is it really a required feature or
an esthetic would-like-to-have one?
If you can give the user access to your server (eg via FTP etc) they
could add your server directory to their network places in Windows, or
mounted volumes in Linux/Unix. Then they could browse your folder from
the web page in a file selector dialog. My guess is, however, that
once they have system access to your server
1/ they don't need to operate from the page
2/ it becomess a major security issue.
So yeah, that's possible too, but don't do it. Unless it's for a
corporate intranet and have an absolute necessity to do it that way.

Sep 19 '07 #6

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

Similar topics

9
by: Kathryn | last post by:
Hiya I have a problem with using some client side and server side scripting together in an ASP. I'm using VBScript. What I'm trying to achieve is this - - Page loads up and some server side...
12
by: HarveyB | last post by:
I would like to generate non-modal popup windows from ASP.Net code-behind. I have tried using Client Side scripting like "function Test(){ window.open('test.htm',_blank,...
6
by: \A_Michigan_User\ | last post by:
Ok, I give up... why do 1-4 work fine... but 5-6 give "can't find" errors? 1. Client-side VBscript code: call navigate("\\209.11.22.33\MyDir") 2. Client-side VBscript code: location.href...
5
by: KathyB | last post by:
If someone could just explain this to me...I just don't get it! I have an aspx page where I retrieve several session variables and use xmlDocument to transform xml file with xsl file into an...
4
by: Kash | last post by:
Hi everybody: I've developed a web application running on a 2003 server not on the web but on extranet environment of a small Firm (less than 10 users). I've taken benefit of Office Primary...
4
by: Pedro Leite | last post by:
Good Afternoon. the code below is properly retreiving binary data from a database and saving it. but instead of saving at client machine is saving at the server machine. what is wrong with my...
2
by: Jobs | last post by:
Download the JAVA , .NET and SQL Server interview with answers Download the JAVA , .NET and SQL Server interview sheet and rate yourself. This will help you judge yourself are you really worth of...
1
by: captainwin | last post by:
Here's the problem: - Website is ASP.NET 1.0 - Server is Windows Server 2003 - Browser is IE 6/7 - Client requests a mail merged MS Word 97 - 2003 document on the website, and the document gets...
22
by: Dan Rumney | last post by:
Hi all, I've been writing Javascript for quite a while now and have, of late, been writing quite a lot of AJAX and AJAX-related code. In the main, my dynamically generated pages are created...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
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...
0
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,...

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.