Ajax question

Giganews Newsgroups
Subject: Ajax question
Posted by:  Mike (ampelo…@gmail.com)
Date: Mon, 26 Nov 2007

Hello
I have The following:
In my main file
<div id="txtHint"></div>
in my php file
echo "<p>$row_Recordset1[U]</p>"
in my js
function stateChanged()
{

if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
{
// alert (xmlHttp.responseText)
document.getElementById("txtHint").innerHTML=xmlHttp.responseText
}

The element, which is correct, flashes on the screen and then goes
away.
any suggestions?
Thanks

Replies