
** ? concerning CreateObject("Scripting.FileSystemObject")
As I believe I noted in a previous response, I do not think that
browser-side events such as OnLoad can call server-side routines, which your
code below is still trying to do. If you have working (or near working)
code, please post a new cut-and-paste copy. The code below will obviously
fail because of the lack of a ">" on the right end of the first SCRIPT tag.
/Al
Quote:
> ok my mistake I wrote it up quiclly to the group its not client side
> script.... it server side Its just a test, wanted to know if there
> was any way to access any text file , so far I've goten how is the
> text file created... which really does not matter this is just a
> simple questioon if one can read one's own text file at this time in
> the script and update the webpage (Document) at intevals of time
> instead of re-outputing the whole page, by updating the tags
> <SCRIPT LANGUAGE=vbscript Runat=server
> Const ForReading = 1
> public x
> public Sub Gpwsm()
> 'any text file on my system here, using the filesystemobject
> x = x + 1
> document.all.MyData.innerText = x & " -- " & time
> yID = setTimeout ("Gpwsm", 1000)
> End Sub
> </SCRIPT>
> <body onLoad="Gpwsm()" background = "white">
> <P ID="MyData"></P>
> </body>
> John