function refresh_box( var_div, var_url )
{
var Pdiv = get_object( var_div );
if(Pdiv)
{
Pdiv.innerHTML = '<a>..</a>';
var req = null; if (window.XMLHttpRequest)
{
req = new XMLHttpRequest();
if (req.overrideMimeType) {
req.overrideMimeType('text/xml');
}
} else if (window.ActiveXObject) {
try {
req = new ActiveXObject("Msxml2.XMLHTTP" );
} catch (e)
{
try {
req = new ActiveXObject("Microsoft.XMLHTTP" );
} catch (e) {}
}
}
req.onreadystatechange = function()
{ Pdiv.innerHTML = '<a>...</a>';
if(req.readyState == 4)
{
if(req.status == 200)
{
Pdiv.innerHTML = req.responseText;
} else {
Pdiv.innerHTML = '<a>Err</a>';
} } };
req.open("GET", var_url, true);
req.setRequestHeader("Content-Type", "application/x-www-form-urlencoded" ); req.send(null);
}
} |