Need your help(very simple) - Programmers Heaven

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Need your help(very simple)

lawlawlawlawlawlaw Posts: 1Member
I am an novice. In this case, i don't know why the value of
id "title" cannot pass to function,update. I need you





function update(title,message){
var xmlHttp;
var url="process.php?Name[color=Blue]="+title[/color]+"&Message="+message;
if (window.XMLHttpRequest)
{// code for IE7+, Firefox, Chrome, Opera, Safari
xmlHttp=new XMLHttpRequest();
}
else
{// code for IE6, IE5
xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
}

xmlHttp.onreadystatechange=function()
{
if (xmlHttp.readyState==4 && xmlHttp.status==200)
{
document.getElementById("txtUpdate").innerHTML=xmlHttp.responseText;
}
}
xmlHttp.open("GET",url,true);
xmlHttp.send();

}



Main






num
Put your Message Here!





Sign In or Register to comment.