Hi All,
I have to refresh a div onclick .
here my code
refresham using AJAX
function loadurl(dest) {
try {
xmlhttp = window.XMLHttpRequest?new XMLHttpRequest():
new ActiveXObject("Microsoft.XMLHTTP");
}
catch (e) { /* do nothing */ }
xmlhttp.onreadystatechange = triggered;
xmlhttp.open("GET", dest);
xmlhttp.send(null);
}
function triggered() {
if ((xmlhttp.readyState == 4) && (xmlhttp.status == 200)) {
document.getElementById("yourDiv").innerHTML = xmlhttp.responseText;}
}
</script>
-------------------------------------
i dont need to put any response in 'mydiv',innerhtml
because on onclick httpsession will be updated and if i refresh the div then the source in div will be updated with the session.
PLz send me response asap