Valhalla Legends Archive

Programming => Web Development => Topic started by: Paul on August 15, 2004, 09:33 PM

Title: Searching for txt in directories
Post by: Paul on August 15, 2004, 09:33 PM
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.
Title: Re:Searching for txt in directories
Post by: quasi-modo on August 15, 2004, 10:20 PM
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.