View Single Post
  #6 (permalink)  
Old January 11th, 2005, 09:58 AM
interrupt interrupt is offline
Friend of Wrox
Join Date: May 2004
Location: , , .
Posts: 212
Thanks: 0
Thanked 0 Times in 0 Posts

Hi Vinod,

Thanks for your help so far. I already have the chat room built, and I already have the script in place that gets the data from the Textfile. I will include it here. All I need to know is how to get the textarea to scroll to the bottom every time the routine returns the contents of the textfile.

<script language="vbscript">
sub readerText()
dim filesys, readfile, contents
set filesys = CreateObject("Scripting.FileSystemObject")
set readfile = filesys.OpenTextFile("p:\clevedon staff\training program\training pack\chattest\test.txt", 1, false)
contents = readfile.Read(1000000)
document.form1.readit.value = contents & chr(13)
end sub

As you can see its vbscript, but I just wondered if there was a direct method in Javascript that I could use? Does the textarea have a scroll method?