Teen Programmers Unite  


Return to forum top

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.)


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.

You must be logged in to post messages and see which you have already read.

Log on
Save for later automatic logon

Register as a new user
Copyright TPU 2002. See the Credits and About TPU for more information.