<? Xml version = "1.0" encoding = "gb2312"?>
<! DOCTYPE html PUBLIC "-// W3C // dtd xhtml 1.0 Transitional // EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<Html xmlns = "http://www.w3.org/1999/xhtml">
<Head>
<Meta http-equiv = "Content-Type" content = "text/html; charset = gb2312"/>
<Title> XMLHTTP </title>
</Head>
<Body>
<Div id = "board"> </div>
<Script type = "text/javascript" language = "javascript">
<! --
Function CreateHTTPObject ()
{
Var xmlhttp;
Try
{
Xmlhttp = new ActiveXObject ("Msxml2.XMLHTTP ");
}
Catch (e)
{
Try
{
Xmlhttp = new ActiveXObject ("Microsoft. XMLHTTP ");
}
Catch (e)
{
Xmlhttp = false;
}
}
If (! Xmlhttp & typeof XMLHttpRequest! = 'Undefined ')
{
Try
{
Xmlhttp = new XMLHttpRequest ();
}
Catch (e)
{
Xmlhttp = false;
}
}
If (! Xmlhttp & window. createRequest)
{
Try
{
Xmlhttp = window. createRequest ();
}
Catch (e)
{
Xmlhttp = false;
}
}
Return xmlhttp;
}
// Use the global variable xmlhttp
Function OnReadyStateChng ()
{
If (xmlhttp. readyState = 0)
{
Document. getElementById ("board"). innerHTML = "not initialized ";
}
Else if (xmlhttp. readyState = 1)
{
Document. getElementById ("board"). innerHTML = "loading ";
}
Else if (xmlhttp. readyState = 2)
{
Document. getElementById ("board"). innerHTML = "loaded ";
}
Else if (xmlhttp. readyState = 3)
{
Document. getElementById ("board"). innerHTML = "processing ";
}
Else if (xmlhttp. readyState = 4)
{
Document. getElementById ("board"). innerHTML = xmlhttp. responseText; // process completed
}
}
Var xmlhttp = CreateHTTPObject ();
If (xmlhttp)
{
Xmlhttp. open ("GET", "http://www.cftea.com/", true );
Xmlhttp. onreadystatechange = OnReadyStateChng;
Xmlhttp. send (null );
}
-->
</Script>
</Body>
</Html>