Is it possible to let's say I have this folder structure
To do a JS that counts just the amount of folders that reside in subfolder B from a page(count.html) that resides at toplevel A
another similar case:
I have an array of images that displays the length of that array with photoarray.length in a page x1.html
Can I pass that value (the array length number) to a page residing at the same level x0.html (in the same folder if you will)
10-13-2005, 10:36 PM
Given that, you can use Scripting.FileSystemObject to count things.
You can pass anything you want, pretty much, via the URL.
about the JS:
why? ISP in this case: no cgi-bin or other, therefore relying client-side JS
there is only seems a way to pass variables accross pages by means of a topFrame, (maybe?) inline frame, cookies (if enabled ?), and server-side (no option here)
10-14-2005, 02:48 PM
You can pass variables in the URL.
You cannot access the server file system from client-side JS alone.
I'm not sure, but I guess that you need to have in a page a variable which is the number of the picture in a given folder. This variable will help you to give a limit to an array for a dynamic circling through the pictures. Am I right?
10-14-2005, 03:39 PM
That would work great, but he said there was no server-side scripting.
Personally, I wouldn't be trying to make a site if the host had no server-side scripting. Web hosts are cheap these days. Move. :D
Thank you for all your thoughts.
- Counting folders seems impossible with only client-side JS.
- Passing variables from one page to another with JS, seems possible. Inline frame would that be a good option? would like an example if possible with inline frame
10-14-2005, 06:42 PM
From parent to child:
I think most browsers let you also do: