Savage Monkey
10-12-2003, 07:04 AM
Hi and thanks for reading. I don't often use Javascript in my websites, but please could you help me with this?
I'd like to set a variable in my script to the number of files in a remote folder (for example, the number of files in www.mywebsite.com/images). The purpose of this is so that I can make a button to move through a series of images and stop when it gets to the last one, but I can handle this part I think ;).
Thanks a lot!
PS - on the host I will be using, you are allowed to view the contents of the folders from your browser. I just thought I'd say this as some hosts make it forbidden to do this (therefore probably making a solution to this problem impossible)
I'd like to set a variable in my script to the number of files in a remote folder (for example, the number of files in www.mywebsite.com/images). The purpose of this is so that I can make a button to move through a series of images and stop when it gets to the last one, but I can handle this part I think ;).
Thanks a lot!
PS - on the host I will be using, you are allowed to view the contents of the folders from your browser. I just thought I'd say this as some hosts make it forbidden to do this (therefore probably making a solution to this problem impossible)