| |
gibbo1715
Posts: 52
Score: 0
Joined: 6/8/2005
From:
Status: offline
|
Help again, i can open a text file as part of my html page using a sub with the click of a button using <DIV ID="DIVTAG"></DIV>, how can I open a text file immediately the page loads, i ve tried <SCRIPT type=text/vbscript> Dim f, fso, NewFile Set f = fso.OpenTextFile("C:\Documents and Settings\Paul\My Documents\data.txt", ForReading) NewFile = f.ReadAll DIVTAG.InnerHTML = NewFile </SCRIPT> but i get an error at the Set f line? Thanks in advance for your help
|
|