Tolal:52 Click:
1
2 3
Ajax Interview Questions And Answers
Page 1
Ques: 1 What is Ajax?
Ans:
AJAX is stands for Asynchronous Javascript And XML.
Ajax was first comes at 2005.It is an web development technique used to make interactive web applications and rich internet applications.
Ajax is based on JavaScript and HTTP request.
Ajax are use to retrieve data from server asynchronously to web applications without any interfere with display and characterisics of existing page.
Using Ajax we can inhance interactive animation on web pages.
Using Ajax we can create better,faster and more user friendly web applications.
Ques: 2 Whar you understand by Ajax Polling?
Ans:
By using Ajax Polling script we can send request to the server and receives response according to request from server.
Using Ajax we can return the response to your browser.
Ajax is an light weight.So,it is the act of retrieving data from server regularly to obtain near like data.
Ques: 3 Tell me reasons of using HTTP POST request by Ajax request?
Ques: 4 How to use an Ajax code across different browsers?
Ans:
Internet Explorer uses an ActiveXObject while other browsers uses the built-in JavaScript object called XMLHttpRequest.
Example:
<html>
<body>
<script type="text/javascript">
function ajaxFunction()
{
var xmlHttp;
try
{
// Firefox, Opera 8.0+, Safari
xmlHttp=new XMLHttpRequest();
}
catch (e)
{
// Internet Explorer
try
{
xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
}
catch (e)
{
try
{
xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
}
catch (e)
{
alert("Your browser doesn't supported by Ajax!");
return false;
}
}
}
}
</script>
Ques: 5 Why Ajax is comfortable fit with Java?
Ans:
Because Java is a more comfortable for AJAX. Than you can use Java Enterprise Edition servers to generate Ajax client pages and to serve incoming Ajax requests and to manage server side state for Ajax clients and connect Ajax clients to your enterprise resources. The JavaServer Faces component model is a more comfortable for defining and using Ajax components.
Ques: 6 Tell me about environment that we used in Ajax?
Ans:
Ajax support many environment like that PHP/ASP and other web based projects.
Ques: 7 Uploading file using Ajax is possible or not?
Ans:
No,we can't perform an uploading file task with Ajax.I have given you a method this is using iframe and upload files to give feel like Ajax file upload. This is used by many scripts and libraries in their Ajax file upload plugins.
Ques: 8 How we can say user interfaces are powerful in Ajax?
Ques: 9 How you define JSON in Ajax?
Ans:
Some main points about JSON are given below:
1.JSON stand for JavaScript Object Notation.
2.JSON is an lightweight data interchange format.
3.JSOn gives us JavaScript eval() method to parse an XML easily.
Ques: 10 How you define Comet in Ajax?
Ans:
Ajax Push is an Comet Technology. Using Ajax Push web servers can send an data to the user without any need the user request for it.
Using this user can make up-to-date with data arriving or varying onthe server,without any frequent polling.
Ques: 11 What types of technologies combined in Ajax?
Ans:
For implementation Ajax combined client side technolgies. Technolgies that are combined in Ajax are given below.
JavaScript
DHTML
HTML
Ques: 12 How to handle asyncronous processing using Ajax?
Ans:
Using Ajax we perform asynchronous data transfer according to HTTP request b/w the client browser and server.
Using Ajax we can allow task from web pages to request only little bit of information from server without loading whole page again.
Uxing Ajax our JavaScript can communicate with server directly through an JavaScript XMLHttpRequest object.This object help us JavaScript to trade data from sever without reloading the whole page.
Use: Use of Ajax technique to make web applications smaller,faster and more friendly to user.
Ques: 13 How you define Mashups in Ajax?
Ans:
Ajax Mashup is an hybrid web application.
Ajax Mashup uses Ajax techniques to present a rich UI that can updates itself in place by using content that it retrieves asynchronously from multiple sources.
In this server sends an initial page to the browser, which then makes calls to retrieve updated content. These calls are used to made directly to the third-party sources from the browser or back to the originating server, It is act as a proxy for the third-party content.
Ques: 14 How you differenciate b/w DOM Parser and AUX Parser?
Ans:
I have given you main difference b/w DOM Parser and AUX Parser given below:
Using domxml we can use DOM parser at server side in php.Where as wwe used AUX Parser in JavaScript at client side.
Ques: 15 Who is the discoverer of Ajax?
Ans:
Ajax none discovered by person.Ajax is an XMLHTTPRequest object which is first implemented by Microsoft in Internet Explorer 5 as an ActiveX
object for windows.
After that it is called as Asynchronous Javascript and XML(AJAX).
Ques: 16 Tell me about different frameworks that are available in Ajax?
Ques: 17 What happen when server to interact with an Ajax client?
Ques: 18 How to submit a form or part of a form without refresh the page?
Ans:
If you created a form I told you have to set "form" element and "onSubmit" attribute into JavaScript function that returns false.
Example:
<form onSubmit="doAJAXSubmit();return false;" ><input type="hidden" name="phpMyAdmin" value="f43d4e0b88acea2d2a393515f6bf38f2" /><input type="hidden" name="phpMyAdmin" value="70ac9566533a2665b6597346aab7f985" />
<input type="text" id="tf1" />
<input type="submit" id="submit1" value="Update"/>
</>
If you want to submit data than you perform that task when we associated a function with form button.
Example:
<form onSubmit="doAJAXSubmit();return false;" ><input type="hidden" name="phpMyAdmin" value="f43d4e0b88acea2d2a393515f6bf38f2" /><input type="hidden" name="phpMyAdmin" value="70ac9566533a2665b6597346aab7f985" />
<input type="text" id="tf1" />
<input type="button" id="button1" onClick="doAJAXSubmit()" value="Update"/>
</>
"onSubmit" attribute is still set.When client hits the enter key in the text field the form will be submitted.To handle this we have solution write below.
When you updating the page than you have make sure that AJAX update of the form data was successful before updating the data in the page. Otherwise, The data may not properly update and the Client may not know. I like to provide an informative message when doing a partial update and upon a successful AJAX interaction after that I will update this page.
Ques: 19 How we get XMLHttpRequest object?
Ans:
To getting XMLHttpRequest object on the browser it totally depends on type of browser.
Example:
if (window.ActiveXObject)
{
// Internet Explorer
http_request = new ActiveXObject("Microsoft.XMLHTTP");
}
Ques: 20 What are security issues with Ajax?
Ans:
Some main security issues ragarding Ajax are given below:
1.When we selecting view source of the page with JavaScript it gives a plain view to client.
2.When user does not granted permission than JavaScript can not access the local filesystem.
3.Ajax only interact with server side component from which we loaded that page.
4.Use of proxy pattern can enable Ajax interactions with external services.
5.You have to consider HTTPS to secure connection when you even try to exchange some confidential information.
Goto Page:
1
2 3
Ajax Objective
Ajax Objective Questions And Answers
Ajax Interview Questions And Answers
Ajax Interview Questions And Answers
R4R,Ajax Objective, Ajax Subjective, Ajax Interview Questions And Answers,Ajax,Ajax Interview,Ajax Questions ,Ajax Answers