hi it me again.
right now i had a problem with this code. when i open with ie6, it worked but if i use ie7,safari and firefox, the result didn't show up.here i provide the code. the error is where i mark it with the red color. please someone help me?
php code.....
<BODY onLoad="init_table();" style=" background-repeat:repeat; background-image:url('images/bg_b.gif');">
javascript code..
<script type="text\javascript" >
function requestUrl(url,id,redirectPage) {
var temp=new Array();
http.open("GET", url, true);
http.onreadystatechange = function() {
if (http.readyState == 4) {
if(http.status==200) {
var results=http.responseText;
if(redirectPage=="" || results!="1") {
var temp=id.split("~"); // To display on multiple div
//alert(temp.length);
var r=results.split("~"); // To display multiple data into the div
//alert(temp.length);
if(temp.length>1) {
for(i=0;i<temp.length;i++) {
//alert(temp[i]);
document.getElementById(temp[i]).innerHTML=r[i];
}
} else {
document.getElementById(id).innerHTML = results;
}
} else {
//alert(results);
window.location.href=redirectPage;
}
}
}
};
http.send(null);
}
function init_table() {
requestUrl('showTable.php?mode=list','showTable','');
}
</script>