problem med ajax - kan ikke sende videre
Min funktion here vil slet ikke køre? hvorfor?function getxmlhttp(){
var xmlhttp=false;
try {
xmlhttp= new ActiveXObject("Msxml2.XMLHTTP");
} catch(e){
try{
xmlhttp= new ActiveXObject("Microsoft.XMLHTTP");
} catch (e) {
xmlhttp= false;
}
}
if (!xmlhttp && typeof XMLHttpRequest != 'undefined'){
xmlhttp= new XMLHttpRequest();
}
return xmlhttp;
};
function processajax(obj,serverPage){
var theimg;
var lok="<div class=\"besked\"><img src=\"indikator.gif\" width=\"70\" height=\"10\" /><br>Loading..........</div>";
xmlhttp=getxmlhttp();
xmlhttp.open("GET",serverPage+"&rijad1="+parent.frames['collect'].fullName+"&rijad2="+Math.round(fullScore));
document.getElementById(obj).innerHTML=lok;
xmlhttp.onreadystatechange=function(){
if (xmlhttp.readyState==4 && xmlhttp.status==200){
document.getElementById(obj).innerHTML=xmlhttp.responseText;
//alert(xmlhttp.responsetext);
}
}
xmlhttp.send(null);
};
function idi(id){
var lokacija= "mail.php?sta=nista";
//alert(id);
processajax("tijelo",lokacija);
};