Jump to content


Photo

Does JavaScript have a function similar to PHPs glob() ?


  • Please log in to reply
4 replies to this topic

#1 Kris

Kris
  • Staff Alumni
  • Advanced Member
  • 2,755 posts
  • LocationThe Internet

Posted 31 July 2006 - 12:01 PM

Its all in the title ^^

I want to be able to create an array of the contents of a defined local directory - is this possible with JavaScript, and is there a function that does it?

Thanks very much.

#2 AndyB

AndyB
  • Staff Alumni
  • Advanced Member
  • 5,465 posts
  • LocationToronto

Posted 31 July 2006 - 12:04 PM

Not likely. I'd suspect that this might well be outside the security 'sandbox' that separates browser functions and the client O/S.

hmmm ... http://www.zzee.com/...ry-listing.html
Legend has it that reading the manual never killed anyone.
My site

#3 Kris

Kris
  • Staff Alumni
  • Advanced Member
  • 2,755 posts
  • LocationThe Internet

Posted 31 July 2006 - 12:16 PM

Bugger. I thought this might be the case as it would be open for some abuse.

It's not even for an internet application either which is the annoying thing, more of an intranet application. Looks like I might have to learn some Java or something...

#4 AndyB

AndyB
  • Staff Alumni
  • Advanced Member
  • 5,465 posts
  • LocationToronto

Posted 31 July 2006 - 12:29 PM

If you have the correct versions of everything (or the insecure set-up), then http://www.winguides.com/scripting/ might be a usable solution for you.
Legend has it that reading the manual never killed anyone.
My site

#5 Kris

Kris
  • Staff Alumni
  • Advanced Member
  • 2,755 posts
  • LocationThe Internet

Posted 31 July 2006 - 02:35 PM

If you have the correct versions of everything (or the insecure set-up), then http://www.winguides.com/scripting/ might be a usable solution for you.

Thanks AndyB, I'll look into that.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users