C
CW
I have written a chat console using DHTML/ASPX. One of the hidden frame
continuously refreshes and writes any new messages to a conversation
transcript frame. My problem is that I need to keep track of the last
message I have already written to the transcript frame, thus postback is
necessary (so that LastMessageID stored in the text property of a label
field can be read).
I have the following at <body> tag
<body onload="javascriptoIt(<%=GetNewMessages()%>)"
MS_POSITIONING="FlowLayout">
where DoIt has the following definition
function DoIt(NewMessages)
{
top.ActualTranscript.document.write(NewMessages);
top.ActualTranscript.window.scrollTo(0,5000000);
setTimeout('Form1.submit',2000)
}
The idea is that the page posts back to itself every 2 seconds. However,
Form1.submit is actually not triggering anything at all. I don't exactly
know much about javascript. I would appreciate some help to get this to
work.
Thanks in advance
continuously refreshes and writes any new messages to a conversation
transcript frame. My problem is that I need to keep track of the last
message I have already written to the transcript frame, thus postback is
necessary (so that LastMessageID stored in the text property of a label
field can be read).
I have the following at <body> tag
<body onload="javascriptoIt(<%=GetNewMessages()%>)"
MS_POSITIONING="FlowLayout">
where DoIt has the following definition
function DoIt(NewMessages)
{
top.ActualTranscript.document.write(NewMessages);
top.ActualTranscript.window.scrollTo(0,5000000);
setTimeout('Form1.submit',2000)
}
The idea is that the page posts back to itself every 2 seconds. However,
Form1.submit is actually not triggering anything at all. I don't exactly
know much about javascript. I would appreciate some help to get this to
work.
Thanks in advance