about 9 years ago
XMLHttpRequest object is used to exchange the data with the server without loading the whole page.
XMLHttpRequest is supported by all new browser.
Those who do not support, support ActiveXObject.
For declaring in the code
if (window.XMLHttp.request)
{
xhttp = new XMLHttpRequest();
}
else
{
// for those which do not support
xhttp = new ActiveXObject("Microsoft.XMLHTTP);
if (window.XMLHttp.request)
{
xhttp = new XMLHttpRequest();
}
else
{
// for those which do not support
xhttp = new ActiveXObject("Microsoft.XMLHTTP);
Can you help out the community by solving one of the following Javascript problems?
Do activity (Answer, Blog) > Earn Rep Points > Improve Rank > Get more opportunities to work and get paid!
For more topics, questions and answers, please visit the Tech Q&A page.
0 Comment(s)