• Welcome to Valhalla Legends Archive.
 

Searching for txt in directories

Started by Paul, August 15, 2004, 09:33 PM

Previous topic - Next topic

Paul

Is there a way to search within all files in a directory for a specific string of text using jscript? If so, could someone post an example.

quasi-modo

Not with java script. That is client side. You will need a server side language to use a file system. If java script could do it it would be a huge risk because java script is running on the client, if the clients browser could do it that means the client could just get all the files in a directory if he wanted to. Now if you are using js server side like for asp, asp.net, or that old server side javascript that was used back in the day then you could do it, but no it is not possible with straight up client side java script.
WAR EAGLE!
Quote(00:04:08) zdv17: yeah i quit doing that stuff cause it jacked up the power bill too much
(00:04:19) nick is a turtle: Right now im not paying the power bill though
(00:04:33) nick is a turtle: if i had to pay the electric bill
(00:04:47) nick is a turtle: id hibernate when i go to class
(00:04:57) nick is a turtle: or at least when i go to sleep
(00:08:50) zdv17: hibernating in class is cool.. esp. when you leave a drool puddle