472,790 Members | 3,478 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

directory listing clientside

New to javascript.
Is it possible to use javascript to scan a directory client side.
If so, could someone point me in the general direction of information on how
to. I do not know what keywords I should be googling for :(

I am aiming to return array of image files to use in a 'slideshow' script
that will be cut to cd.
I have already found a slideshow script, but now need to populate array, and
will be using php to ultimately write the html code with the javascript
embede for user to save.

TIA

PhilM
Jul 20 '05 #1
7 3245
In article <3f***********************@news.optusnet.com.au> , "PhilM"
<ph***@nospam.com.am> writes:
New to javascript.
Is it possible to use javascript to scan a directory client side.
No. Not in a default security environment.
If so, could someone point me in the general direction of information on how
to. I do not know what keywords I should be googling for :(

I am aiming to return array of image files to use in a 'slideshow' script
that will be cut to cd.
I have already found a slideshow script, but now need to populate array, and
will be using php to ultimately write the html code with the javascript
embede for user to save.


If the images are on the CD, and PHP is generating it all, have PHP generate a
list of the files in the folders and then write it as a JS array. Problem
solved.
--
Randy
Jul 20 '05 #2
PhilM wrote:
New to javascript.
Is it possible to use javascript to scan a directory client side.
If so, could someone point me in the general direction of information on how
to. I do not know what keywords I should be googling for :(

I am aiming to return array of image files to use in a 'slideshow' script
that will be cut to cd.
I have already found a slideshow script, but now need to populate array, and
will be using php to ultimately write the html code with the javascript
embede for user to save.

TIA

PhilM


No, client-side JavaScript has no access to the local file system in the default
security environment.

--
| Grant Wagner <gw*****@agricoreunited.com>

* Client-side Javascript and Netscape 4 DOM Reference available at:
*
http://devedge.netscape.com/library/...ce/frames.html

* Internet Explorer DOM Reference available at:
*
http://msdn.microsoft.com/workshop/a...ence_entry.asp

* Netscape 6/7 DOM Reference available at:
* http://www.mozilla.org/docs/dom/domref/
* Tips for upgrading JavaScript for Netscape 7 / Mozilla
* http://www.mozilla.org/docs/web-deve...upgrade_2.html
Jul 20 '05 #3

"HikksNotAtHome" <hi************@aol.com> wrote in message
news:20***************************@mb-m27.aol.com...
In article <3f***********************@news.optusnet.com.au> , "PhilM"
<ph***@nospam.com.am> writes:
New to javascript.
Is it possible to use javascript to scan a directory client side.
No. Not in a default security environment.
If so, could someone point me in the general direction of information on howto. I do not know what keywords I should be googling for :(

I am aiming to return array of image files to use in a 'slideshow' script
that will be cut to cd.
I have already found a slideshow script, but now need to populate array, andwill be using php to ultimately write the html code with the javascript
embede for user to save.


If the images are on the CD, and PHP is generating it all, have PHP

generate a list of the files in the folders and then write it as a JS array. Problem
solved.
--
Randy


PHP on server can access a users PC directory? I didn't think this was
possible.

The aim is to ultimately create plain html file(with embedded javascript)
for the user to place above a directory of images on their hard drive, that
they can then cut to disk, and use on any comp as a presentation kind of
thing.

PhilM
Jul 20 '05 #4

"Grant Wagner" <gw*****@agricoreunited.com> wrote in message
news:3F***************@agricoreunited.com...
PhilM wrote:
New to javascript.
Is it possible to use javascript to scan a directory client side.
If so, could someone point me in the general direction of information on how to. I do not know what keywords I should be googling for :(

I am aiming to return array of image files to use in a 'slideshow' script that will be cut to cd.
I have already found a slideshow script, but now need to populate array, and will be using php to ultimately write the html code with the javascript
embede for user to save.

TIA

PhilM
No, client-side JavaScript has no access to the local file system in the

default security environment.

For clarification, by local file system, do you mean server, or the users
machine?
(local to web page, or local to client :)
If server, then there is hope, as I do not want to access a server
directory. (I could do that with php)

PhilM
Jul 20 '05 #5
In article <3f***********************@news.optusnet.com.au> , "PhilM"
<ph***@nospam.com.am> writes:
PHP on server can access a users PC directory? I didn't think this was
possible.
No, I thought the images were included in the CD.
The aim is to ultimately create plain html file(with embedded javascript)
for the user to place above a directory of images on their hard drive, that
they can then cut to disk, and use on any comp as a presentation kind of
thing.


<URL:
http://msdn.microsoft.com/library/de...n-us/script56/
html/sgprogrammingfilesystemobject.asp />

Will show you how, in IE, to get a file listing, provided the user allows the
ActiveX to run.
--
Randy
Jul 20 '05 #6
PhilM wrote:
New to javascript.
Is it possible to use javascript to scan a directory client side.
If so, could someone point me in the general direction of information on
how to. I do not know what keywords I should be googling for :(
This question is asked about once a day in this very newsgroup.

I suggest you just read it.

I am aiming to return array of image files to use in a 'slideshow' script
that will be cut to cd.
I have already found a slideshow script, but now need to populate array,
and will be using php to ultimately write the html code with the
javascript embede for user to save.

TIA

PhilM


Jul 20 '05 #7
PhilM wrote:
No, client-side JavaScript has no access to the local file system in the

default
security environment.

For clarification, by local file system, do you mean server, or the users
machine?
(local to web page, or local to client :)
If server, then there is hope, as I do not want to access a server
directory. (I could do that with php)

PhilM


I thought it was fairly clear... client-side JavaScript has no access to the
local file system. Since client-side JavaScript executes on the client, the file
system local to the client is the client's file system.

--
| Grant Wagner <gw*****@agricoreunited.com>

* Client-side Javascript and Netscape 4 DOM Reference available at:
*
http://devedge.netscape.com/library/...ce/frames.html

* Internet Explorer DOM Reference available at:
*
http://msdn.microsoft.com/workshop/a...ence_entry.asp

* Netscape 6/7 DOM Reference available at:
* http://www.mozilla.org/docs/dom/domref/
* Tips for upgrading JavaScript for Netscape 7 / Mozilla
* http://www.mozilla.org/docs/web-deve...upgrade_2.html
Jul 20 '05 #8

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

Similar topics

2
by: Dean | last post by:
Hi I've got a question relating to using Javascript on an Intranet. I have a directory with a list of files in the format week36.xls, week37.xls and I want to write a script that will scan...
19
by: SU News Server | last post by:
I've struggled with this for quite a while and I'm am just not sure what is going on. I have the following code import os def buildList( directory='/Users/mkonrad' ) dirs = listing =...
2
by: Tom | last post by:
I need to get a directory listing through http. If I put the directory path in the browser address bar such as http://somewebpage.com/subdir I get the listing of the directory. Of course this is...
8
by: gil | last post by:
Is it possible to prevent a browser from listing the entire contents of a folder? The site, is hosted on my ISP with the following layout- site/ "user name from ISP" pagefile (dir)...
2
by: ngr | last post by:
I used to use the DirListox control in VB6 but this is no longer supported in VB.NET. What I want to do: I want to take a directory listing and show any subdirectories in a list. When you click...
8
by: dougawells | last post by:
Hi - I'm hoping for help with the auto-generation of a hyperlinked listing of all files in a directory. The server I use does not auto-generate this. So, when someone comes to this directory and...
7
by: epikto | last post by:
I have a mapped share that I am trying to get a listing of all the files that it contains. I use the following code to access the contents String files = Directory.GetFiles(path); I can then...
4
by: techusky | last post by:
I have a *very* simple script written that displays the directory listing of the current working directory, but I am having some difficulty when I try to change folders. Basically, I have my $dir...
1
by: Steve | last post by:
My site is hosted on a Godaddy reseller site. Godaddy only allows the use of Curl to access remote sites. What is the method for listing a directory after connecting to the site with Curl? ...
0
by: Rina0 | last post by:
Cybersecurity engineering is a specialized field that focuses on the design, development, and implementation of systems, processes, and technologies that protect against cyber threats and...
3
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 2 August 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
by: erikbower65 | last post by:
Using CodiumAI's pr-agent is simple and powerful. Follow these steps: 1. Install CodiumAI CLI: Ensure Node.js is installed, then run 'npm install -g codiumai' in the terminal. 2. Connect to...
0
linyimin
by: linyimin | last post by:
Spring Startup Analyzer generates an interactive Spring application startup report that lets you understand what contributes to the application startup time and helps to optimize it. Support for...
0
by: kcodez | last post by:
As a H5 game development enthusiast, I recently wrote a very interesting little game - Toy Claw ((http://claw.kjeek.com/))。Here I will summarize and share the development experience here, and hope it...
0
by: Taofi | last post by:
I try to insert a new record but the error message says the number of query names and destination fields are not the same This are my field names ID, Budgeted, Actual, Status and Differences ...
0
by: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
0
by: lllomh | last post by:
How does React native implement an English player?
0
by: Mushico | last post by:
How to calculate date of retirement from date of birth

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.