Chat on IRC |
Javascript reading HTML
Posted by tastytrout [send private reply] at July 28, 2002, 04:59:43 PM
I'll be writing JavaScript from a text editor for IE 5.x
I want to parse a HTML file using a javascript fucntion. Writing a parser is not a problem. The problem I have is I can't find a way html document to be read into a javascript function. (If you're familiar to C/C++, I'm looking for some sort of "infile >>", infile.get() or file stream function.) Thanks!
Posted by Neumann [send private reply] at July 28, 2002, 05:23:54 PM
You have to create an ActiveX object called TextStream which allows you to access text file from Windows Scripts. Note that you WON'T be able to do it from a web page as Internet Explorer will not want you to access the filesystem.
Posted by buzgub [send private reply] at July 29, 2002, 12:55:44 AM
You might be able to do something with frames.
Register as a new user | |||||