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 all the files in the directory and select the one with the highest week number then display in the browser window. A brief search hasn't revealed any code to do this so I just want to know if it is possible and what the function names are that would be involved.
I need to make a javascript read a web directory from a remote site (ie "http://remotesite.com/images") (The remote die does not have an index.htm and does have directory listing enabled)
I have seen many samples but they all use frames or iframes, all I want is a method that you can say:
is there a way of pointing to a directory where all JScripts are living and let it pick and choose what it needs from which scripts or do I have to do the picking through files each time I write a script that depends on others?
I'm working on a project for work and I'm having some issue trying to distribute to program the smoothes as possible, on idea I had was using Javascript, Im kind of new at this so ill explain to you what Im hoping to do. Basically Im looking for a onload= function when the .hta opens it would get a file from lets say G:\path\path1\path2\file.hta to C:\path\path1\folder So it would take the file and copy past it in another folder from a different directory. If a popup message could popup saying completed
I shoud give a "value" to an DIV's ID that change following the name of the directory where the file is.
For example the file is here: www.website.com/web/01/file.html
Is it possible with javascript to give the value "01" to the DIV's ID? <div id="namedirectory"something inside </div> so it could be readed as: <div id="01"something inside </div>
I'm looking for a way to select a directory from a local drive through a form (like input type="file" except I want to get a directory name not just a file). I've searched every way I could think of (refer to my brain comment above) and come up with absolutly nothing.
I'm trying to combine two scripts I found online to make a preloader for all the images in a folder. The javascript part works when you manually enter in a list of images, so I was trying to make a php array to get all the names of the images in one directory, then use that to list them. Here's what I tried:
i have this web application in which the user has to browse and select a folder but not file. i used <input type="file"> , which helps in retrieving only files.
I have some images 5 or 6 that are 800 x 300 i use in my website banner.The start loading but when number one is 1/3 of the way teh next one starts then the next, it looks real messy nee some way to preload them ... like black square or something .code i used below
<script language="JavaScript"> // configuration structure var A_TPL = {[code].....
I am trying to think of a good way to write some javascript that checks to see if the url entered by a user is base directory url and not an individual page. For example,
I have a webserver setup in my home, with an index file that is an access comtrol page, that, if the authentication is sucessfull, takes the user to a specific directory. In this directory I only have image files in .jpg format.
I need to create a page were the user can either browse the entiry directory, or specify a filename to search for, wildcards enabled, and beiing able to see a reduced size image in the result page when hovering the image/file result link. Any Ideas?
How can I dynamically get all files name from a directory?I need to have a directory with pictures, and when I copy new ones, on my website to have them listed inside of a div. If jQuery can't do this, there is otherpossibility
I've created a jquery slideshow what I wanna do is to pull files from a directory and add them to the slideshow like open file dialog or any other technique.
I need to make a page that will make a list of all the files in its folder and display the names of the files on the page. It needs to be able to work offline.
I know how to do this with php server side code, but this needs to be able to run on a memory stick. Is Javascript the best way to do this?
I have almost 300 photos that I want to have in a gallery that is easy to use. I would like to avoid making 300 list items (as is necessary with all of the auto rotators and other jquery plug ins that I've found) but to have the images load straight from the folder after the rest of the website has loaded.
It wold be nice if maybe there was a pretty horizontal scroll bar or something and the image in the middle of the page was biggest if possible, but I'm really not picky. I don't know what the best way is to display so many photos! They don't need captions or anything.
I am not sure this is possible but it seems like it should be. I want to populate a javascript array with all the image files in a dorectory. I want this to be dynamic so that when I add an image to the directory it get included in the array.
Any ideas? I am sure there are many javascript wizards out there who can point me in the right direction.
I am trying to convert a slide show script to install as Web Content on the Windows2K Active Desktop. My ideal implementation would just display all the image files in a specific directory rather than having to edit the script each time I add or remove an image.
I have written a script that uses the File System Object and works fine, but it puts up an alert box when I instantiate the FSO. I am hoping someone can advise me on how to run this particular script without the alert, but I am not willing to give any old script that happens to run access to any important directories.
Looking for a little bit of help. I created a simple script a while back in PHP which reads all the images from a directory and assigns them to an array (reading for loading into a document). Would I be able to do this in JavaScript or does it not have these kind of privileges?
I like using PHP to dynamically set styles according to what directory the page is in. I'm doing a project where PHP isn't an option, so I'm trying to do it with javascript. The following isn't working - anything obvious wrong it?