Refresh Your Java - Before Java Interview
We are Agile, believe in less Documentation - Only Quick notes (Java Interview Questions) of Java/J2ee Read more....
onreadystatechange is a event listener in
AJAX, this will be automatically invoked
for
all the actions such as submiting data, finishing call etc., of
any Ajax call,
and these would change the readyState property of the
XMLHttpRequest object,
that will inform you if the given
Ajax request is successed or failed.
So
by using readyState value we can see check if a given Ajax call is
successful or not,
if readyState Value is 4, we could
consider that is successful. You could also check
"xmlhttp.status==200"
xmlhttp.onreadystatechange = function() {
if(xmlhttp.readyState == 4 &&
xmlhttp.status==200){
alert(xmlhttp.readyState);
}
};
xmlhttp.open("GET","somepage.xml",true);
xmlhttp.send(null);
This Portal is intended to put all Java/J2ee related topics at one single place for quick referance, not only Technical , but also the Project Management Related thing such as Development Process methodoogies build process, unit testing etc.,
This Portal has More than 500 Java Interview Questions (also could be Considered as Quick Notes) very neatly separated topic by topic with simple diagrams which makes you easily understandable. Importantly these are from our Realtime expericance.