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("P OST", url ,true); // Method and URL destination
try {xmlhttp.setReq uestHeader("Con tent-type",
"applicatio n/x-www-form-urlencoded;char set=UTF-8"); } catch(e) {} // Header
xmlhttp.onready statechange=fun ction() // New function that check the
state of request
{
if(xmlhttp.read yState==4)
{
if(xmlhttp.stat us==200)
{
replymsg('reply msg', true);
document.getEle mentById('messa ge').value = '';
if (xmlhttp.respon seText==1)
{
alert("[{Your_message_w as_sended}]");
}
}
if(xmlhttp.stat us==404) alert("[{Ops!_404_Not_F ound}]");
}
}
xmlhttp.send(qu erystrings); // Transmits the request with querystrings
}
}
--
Marcos.
http://www.linuxhard.org
Comment