at this part:

if (xmlhttp.readyState==4 && xmlhttp.status==200){...

My program's "xmlhttp.readyState" is 4 but its xmlhttp.status is always 0, why?
is it even necessary to add "xmlhttp.status==200" condition? because I've seen programs without it :/
thanks

If the status is 200, it means that you've got a successful response. If not, there's a problem and most likely the response is useless.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.