[Ilugc] Javascript for slideshow

  • From: gopal@xxxxxxxxxxxxxxxxx (Gopalarathnam Venkatesan)
  • Date: Mon Oct 9 17:46:34 2006

Girish Venkatachalam wrote:

      One small question please. Is it possible to specify  a directory so 
that we can populate our array from the dir instead of hard coding images?

      I guess that should do. No need to do globbing and figure out only iage 
files. 

      I think if someone can send that patch , it will be great.


There is no portable way to do that.  Also, using JavaScript its not 
possible to access the file system.  But yes, if you are running this 
from a local machine:

   - if you are running Mozilla based web browsers, you can use the 
netscape.security.PrivilegeManager's methods and use the java object 
methods.
   - if you are using IE, you can use the FileSystemObject or something, 
I forgot.

But AFAIK there is no clean way of doing it.

-- 
Gopalarathnam Venkatesan

http://gopalarathnam.com/

Other related posts: