Javascript string search query
Hi all,
I've been tring to get this Javascript function: str.indexOf() To report the first instance of a predetermined string in a text file, but am having no luck. I know this command is good for literal strings in isolation, but is there no way it can be made to scan an actual file? If not, what command should I be using? Thanks. |
how are you getting the file details into your string?
|
Quote:
Code:
<script type="text/javascript"> /home/clueless/documents/textfile.txt as a literal string rather than a path to the named file. |
Code:
function findocur(var what, var string){ |
Standard Javascript doesn't support file IO, since it would let web sites do nasty things on your computer.
|
the original poster said nothing about file io
|
Quote:
Quote:
|
true
javascript cannot do server or client file io if you need it move to PHP |
Thanks, guys. I thought I was going nuts there for a minute!
|
All times are GMT -5. The time now is 02:56 AM. |