M
Marcos
This [1]script not work with last Opera 8, but its work with Internet
Explorer and Firefox, the HTTP Request yet not work fine on the Opera?
[1]
function sendmessage(url, querystrings)
{
xmlhttp = checkxml();
if(xmlhttp)
{
xmlhttp.open("POST", url ,true); // Method and URL destination
try {xmlhttp.setRequestHeader("Content-type",
"application/x-www-form-urlencoded;charset=UTF-8"); } catch(e) {} // Header
xmlhttp.onreadystatechange=function() // New function that check the
state of request
{
if(xmlhttp.readyState==4)
{
if(xmlhttp.status==200)
{
replymsg('replymsg', true);
document.getElementById('message').value = '';
if (xmlhttp.responseText==1)
{
alert("[{Your_message_was_sended}]");
}
}
if(xmlhttp.status==404) alert("[{Ops!_404_Not_Found}]");
}
}
xmlhttp.send(querystrings); // Transmits the request with querystrings
}
}
Explorer and Firefox, the HTTP Request yet not work fine on the Opera?
[1]
function sendmessage(url, querystrings)
{
xmlhttp = checkxml();
if(xmlhttp)
{
xmlhttp.open("POST", url ,true); // Method and URL destination
try {xmlhttp.setRequestHeader("Content-type",
"application/x-www-form-urlencoded;charset=UTF-8"); } catch(e) {} // Header
xmlhttp.onreadystatechange=function() // New function that check the
state of request
{
if(xmlhttp.readyState==4)
{
if(xmlhttp.status==200)
{
replymsg('replymsg', true);
document.getElementById('message').value = '';
if (xmlhttp.responseText==1)
{
alert("[{Your_message_was_sended}]");
}
}
if(xmlhttp.status==404) alert("[{Ops!_404_Not_Found}]");
}
}
xmlhttp.send(querystrings); // Transmits the request with querystrings
}
}