php script form
list box update script
jQuery(document).ready(function(){
var PrevMeldingen = "";
var klant = $('#klantsearch').val();
$.ajax({ url: 'getmeldingen.php?q='+klant, success: function(PrevMeldingen) {
$("#PrevMeldingen").html(PrevMeldingen);} })});
Dit werkt
div update script
function updateThis(obj){
var option = document.getElementById('PrevMeldingen').Value;
if (window.XMLHttpRequest) {
xmlhttp=new XMLHttpRequest();
} else {
xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
}
xmlhttp.onreadystatechange=function() {
if (xmlhttp.readyState==4 && xmlhttp.status==200){
document.getElementById("artiekelnaam").innerHTML=xmlhttp.responseText;
}
}
xmlhttp.open("GET","getNote.php?q="+option,true);
xmlhttp.send();
}
Id's kloppen maar script werkt niet
ik kan het probleem niet vinden heeft er iemand een idee