Valhalla Legends Forums Archive | Web Development | Searching for txt in directories

AuthorMessageTime
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.
August 16, 2004, 2:33 AM
peofeoknight
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.
August 16, 2004, 3:20 AM

Search