answersLogoWhite

0

AllQ&AStudy Guides
Best answer
This answer is:
Related answers

In all modern browsers, you can create a new XMLHttpRequest object using the following code:

var request = new XMLHttpRequest()

However, if you need to also support Internet Explorer 6 and older, you need to extend your code like this:

if (window.XMLHttpRequest) {

//Firefox, Opera, IE7, and other browsers will use the native object

var request = new XMLHttpRequest();

} else {

//IE 5 and 6 will use the ActiveX control

var request = new ActiveXObject("Microsoft.XMLHTTP");

}

View page

Javascript is basically a client side scripting language which is mostly used for more interactive websites, client side validation etc. Ajax is basically asynchronous javascript and XML. So it used javascript but there is a lot more to it. XMLHttpRequest object is used to interact with the server to get the real time data without refreshing the page. There are other alternatives to XMLHttpRequest object like iframe, XMLDocument object but they are not as robust as this one. So XMLHttpRequest object is activated through regular javascript actions and the request is sent to the server. Once the response is recieved, it is thrown back to the browser and diplayed in some previously unfilled variables.

View page

While many commands and coding tasks can be difficult to understand, this Java Script tool is fairly easy for most lay people. Basically this tool is used to send requests directly to a server and load the server response data directly back into the script.

View page

I do not know in depth. But using the Asynchronous Javascript and XML HTTP Request one can easily access the concept of AJAX. simply ajax is an technique of many technologies such as Javascript, XMLhttprequest, css and dom. Take the new registration of E- mail id when you are a new user. You can suggest an user name by this technique.

View page
Featured study guide
📓
See all Study Guides
✍️
Create a Study Guide
Search results