|
Answer - Ajax is a set of client side technologies that allows
asynchronous communication between...............
Read answer
The following are the benefits of AJAX over Java applet: AJAX applications are
loaded in seconds, where as Applets takes longer time. The reason is, Applet
applications are tend to load large libraries..................
Read answer
The disadvantages of AJAX are: Search engines would not be able to index an AJAX
application..............
Read answer
AJAX encoding can be done in two ways: encodeActionURL() method is used for full
page refresh.............
Read answer
AJAX is a comfortable fit because, using Java Enterprise Edition the following
tasks can be performed:.............
Read
answer
Synchronous AJAX is a process that makes a java script to halt or stop the
processing an application until a result is sent by a server. The browser is
frozen, while the request...............
Read answer
Applets provide features like custom data streaming, graphic manipulation,
threading, and advanced GUIs which AJAX cannot..................
Read answer
An AJAX application introduces a layer between the user and the server which
comprises of the AJAX engine. This eliminates the adhoc interaction between the
client.............
Read answer
With AJAX the control can be more centralized in a server-side component or a
mix of client-side and server-side controllers...............
Read answer
The nature of updating a page dynamically using data retrieved via AJAX
interactions and DHTML may result in drastically changing the appearance and
state of a page...................
Read answer
Ajax Interview questions with answers posted
on August 12, 2008 at 18:00 pm by Rajmeet Ghai
Answer - ASP.NET Ajax Framework is used for implementing the
Ajax functionality......
Read answer
Answer - Back functionality cannot work because the dynamic
pages don’t register themselves to the browsers history engine..........
Read answer
Answer - Script Manager, as the name suggests is used to manage
the client side script of Ajax.............
Read answer
Answer - Ajax is Asynchronous Java Script and XML. Here on
sending request to the server, one needn’t wait for the
response.................
Read answer
Answer - Ajax Objects can be created by the following
syntax:.............
Read answer
Answer - JSON is JavaScript Object Notation. JSON is a
safe and reliable data..........
Read answer
Answer - XMLHttpRequest object is used to transfer data between
a client and a server.......
Read answer
Answer - Ajax uses HTTP’s GET or POST. AJAX also uses
XMLHttpRequest protocol for requesting to the web server...............
Read answer
Answer - AJAX function calls are sent in plain text to server.
These calls may easily reveal database...............
Read answer
Answer - JavaScipt Closures can be used for handling concurrent
requests. A function can be written.............
Read answer
Answer - If the page is expected to be shown in a search engine
like Google. Since Web crawlers don’t execute...............
Read answer
Answer - By determining the readyState property value of
XMLHttpReqyest, One can know if the request...............
Read answer
Answer - In order to store changes in the browsers web history
(enabling back and forward buttons)..............
Read answer
Test your .NET/Java skills!
ASP.NET (41
questions)
C#.NET (38
questions)
VB.NET (33
questions)
.NET Framework
(26 questions)
ADO.NET (10
questions)
Java part 1 (39 questions)
Java part 2 (40 questions)
Ajax interview questions posted by Madhavi
on May 05, 2011
Explain AJAX in detail.
AJAX stands for Asynchronous JavaScript and XML.
AJAX is a technique for creating fast and dynamic web pages. AJAX allows web
pages to be updated asynchronously by exchanging small amounts of data with the
server behind the scenes. This means that it is possible to update parts of a
web page, without reloading the whole page.
Is is possible to implement Ajax in browsers that do not support the
XmlHttpRequest object?
Yes by using ActiveXObject, it is possible to implement AJAX in browsers that do
not support the XmlHttpRequest object.
Explain limitations of Ajax.
Limitations of AJAX:
1)Browser Integration
The dynamically created page does not register itself with the browser history
engine, so triggering the "Back" function of the users' browser might not bring
the desired result.
2)Response-time Concerns
Network latency - or the interval between user request and server response -
needs to be considered carefully during Ajax development.
3)Search Engine Optimization (SEO)
Websites that use Ajax to load data which should be indexed by search engines
must be careful to provide equivalent Sitemaps data at a public, linked URL
that the search engine can read, as search engines do not generally execute the
JavaScript code required for Ajax functionality 4)Reliance on JavaScript Ajax
relies on JavaScript, which is often implemented differently by different
browsers or versions of a particular browser. Because of this, sites that use
JavaScript may need to be tested in multiple browsers to check for
compatibility issues.
What is the role of ScriptManager in Ajax?
ScriptManager is a class and a control in Ajax.
The ScriptManager class in ASP.NET manages Ajax Script Libraries, partial page
rendering functionality and client proxy class generation by creating an
instance of the Ajax runtime on the browser, for web applications and services.
The ScriptManager control (that we may drag on a web form) is actually an
instance of the ScriptManager class that we put on a web page. The
ScriptManager manages all the ASP.NET Ajax controls on a web page.
Which request is better with AJAX, Get or Post?
AJAX requests should use an HTTP GET request while retrieving data where the
data does not change for a given URL requested. An HTTP POST should be used
when state is updated on the server. This is in line with HTTP idempotency
recommendations and is highly recommended for a consistent web application
architecture.
List out browsers that support AJAX.
All the available browsers can not support AJAX. Here is the list of major
browsers which support AJAX.
1. Mozilla Firefox 1.0 and above
2. Netscape version 7.1 and above
3. Apple Safari 1.2 and above.
4. Microsoft Internet Exporer 5 and above
5. Konqueror
6. Opera 7.6 and above
What are the different frameworks available In AJAX?
The following is a list of notable Ajax frameworks, used for creating web
applications with a dynamic link between the client and the server.
Some of the frameworks are JavaScript compilers, for generating JavaScript and
Ajax that runs in the web browser client;
Some are pure JavaScript libraries. Others are server-side frameworks that
typically utilize JavaScript libraries.
1. JavaScript frameworks are browser-side frameworks very commonly used in Ajax
development. There are hundreds of JavaScript frameworks available.E.g. jQuery
2. Java frameworks used for server-side Ajax operations: E.g. Apache Wicket
3. C++ : E.g. Wt - a C++ Web Toolkit
4. .NET : The following frameworks are available for the Windows .NET platform:
e.g. ASP.NET AJAX (previously Microsoft Atlas)
5. PHP : A PHP framework is able to deal with database, search data, and build
pages or parts of page and publish the page or return data to the
XMLHttpRequest object. E.g. Quicknet is an Ajax framework that provides secure
data transmission, uses PHP on the server side
6. Python : These frameworks use Python for client-side Ajax operations:
E.g. Pyjamas, a widget library with a Python to JavaScript compiler
7. Ruby : The Ruby on Rails framework implements a Domain- specific language
named RJS, which can be used to write Ruby code that generates Javascript code.
Does AJAX work with Java?
Absolutely. Java is a great fit for AJAX! We can use Java Enterprise Edition
servers to generate AJAX client pages and to serve incoming AJAX requests,
manage server side state for AJAX clients, and connect AJAX clients toy our
enterprise resources. The JavaServerFaces component model is a great fit for
defining and using AJAX components.
|
More Related Links
AJAX is an acronym for Asynchronous JavaScript and XML. If you think it doesn't
say much, we agree. Simply put, AJAX can be read "empowered JavaScript",
because it essentially offers a technique for client-side JavaScript to make
background server calls...........
With AJAX, only the necessary data is transferred back and forth between the
client and the web server. This minimizes the network utilization and
processing on the client........
AJAX is a general umbrella term. AJAX itself stands for Asynchronous JavaScript
And XML.................
AJAX-style communications between client and server. This communication is over
web services. Asynchronous communication. All client-to-server communication in
the ASP.NET 2.0 AJAX framework is asynchronous................
ASP.NET AJAX Futures Community Technology Preview (CTP) — The ASP.NET 2.0 AJAX
framework contains a set of functionality that is experimental in nature. This
functionality will eventually become integrated with the RTM/Core code.
AJAX makes it possible to create better and more responsive websites and web
applications...............
Search engines may not be able to index all portions of your AJAX application
site.........
AJAX is employed to improve the user’s experience. A request is made for the
initial page rendering. After that, asynchronous requests to the server are
made. An asynchronous request is a background request to send or receive data
in an entirely nonvisual manner.............
ASP.NET AJAX is the name of Microsoft’s AJAX solution, and it refers to a set of
client and server technologies that focus on improving web development with
Visual Studio...............
The ASP.NET AJAX Framework can coexist with script and controls from other
libraries, although given the dynamic nature of the JavaScript language, it is
possible to extend types so that they conflict with each other.................
With AJAX, much of the logic surrounding user interactions can be moved to the
client. This presents its own set of challenges. Some examples of AJAX use
include streaming large datasets to the browser that are managed entirely in
JavaScript..................
What is Shared (static) member? | What is the transport
protocol you use to call a Web service? | What is Option Strict used for? |
Define Boxing and Unboxing. | What does WSDL stand for? | Define ViewState in
ASP.NET. | What is the lifespan for items stored in ViewState? | Define
EnableViewState property. | What are Delegates? | What are Classes? | What is
Encapsulation? | Different types of Session state management options available
with ASP.NET? | What methods are fired during the page load? | Explain ADO.NET.
Define Server-side and Client-side code in ASP.NET. | What
tag do you use to add a hyperlink column to the DataGrid? | Where does VS.NET
store Web application projects? | Describe Web application’s life cycle |
Define class module and a code module. | Steps to execute a stored procedure
from Web Application | Describe exception handling in ASP.NET | What are the
exception-handling ways in ASP.NET?
Here, we will learn to apply nice formatting to data that is displayed on our
page. We will learn to do this by making use of Cascading Style Sheets. We will
also learn how to format our data automatically, depending on the data values
(a technique known as conditional formatting). Then we will learn to filter and
sort our data, use formulae to perform calculations, and how to split our data
up into multiple pages.
Rich user interfaces can be achieved by using a combination of dynamic HTML
elements such as HTML and JavaScript. However, the scope of such an interface
is limited to client-side behavior and has minimal functional implications due
to the lack of server-side interactions.
AJAX has gained tremendous popularity in the traditional web application
development world due to the richness and agility that it brings to user
interfaces. Portals, such as JBoss portal, can also gain signifi cantly from
AJAX, in terms of implementation of both behavior and functionality.
JSR-168 AJAX limitations
Before we look at the features and options provided by the new specifi cation,
let's look at how traditional JSR-168 portlets functioned. As shown in the
following fi gure, the "Action" request invoked the processAction method on the
server, which implemented controller logic to route it to the correct view.
JSR-286 and AJAX
Among the set of features that the new portlet specifi cation JSR-286 introduces
to make things easier for AJAX implementations, are the options to directly
communicate with the portlet through shared render parameters and resource
serving.
Developing an AJAX portlet
Implement AJAX functionality in one of the portlets, using asynchronous server
calls and dynamic HTML.
AJAX support for markup
JBoss portal supports markup through tags on layouts and renderers of the pages.
Special tags are added to layout JSPs that facilitate the placement of AJAX
features on a page. Similarly, renderers are used to interpret the tags and to
render AJAX-driven content. The obvious advantage is the in-built support for
the auto-creation and control of AJAX components on portal pages.
AJAX support for content
Whereas the layout and renderer contribute to AJAX behavior at the markup level,
JBoss portal's support for object-level confi guration can be leveraged to
provide AJAX support at the page level. The object property inherits a confi
gured behavior from its parent. Currently, two features are offered for
AJAX-driven content
Considerations for AJAX
implementations
Although AJAX is an exciting technology and provides signifi cant advantages in
terms of performance, usability, and implementation, there are certain
scenarios where using AJAX is not a good fi t. This is especially true when a
lot of custom development is involved in using AJAX libraries.
Overview of ADO.NET architecture.
Data Provider provides objects through which functionalities like opening and
closing connection, retrieving and updating data can be
availed.............
What are basic methods of
Dataadapter?
This method executes the SelectCommand to fill the DataSet object with data from
the data source...........
|
Click here to
share knowledge by answering these questions
-
Explain AJAX in detail.
-
Explain ASP.NET Ajax Framework.
-
Is is possible to implement Ajax in browsers that do not support the
XmlHttpRequest object?
-
Do AJAX technology work on web servers other than IIS?
-
Explain limitations of Ajax.
-
What is the role of ScriptManager in Ajax?
-
Which request is better with AJAX, Get or Post?
-
List out differences between AJAX and Javascript.
-
List out browsers that support AJAX.
-
What are the different frameworks available In AJAX?
-
Are there any security issues with AJAX?
-
Does AJAX work with Java?
-
Is AJAX a programming language?
-
Are Ajax applications easier to develop than traditional web applications?
-
Describe how to create AJAX objects.
-
Define JSON.
-
What are the objects used by AJAX programs?
-
Describe the basic fundamental of AJAX.
-
Name the API functions that allow connection between the client and server.
-
Describe when to use Java applet instead of AJAX.
-
Which one should we use between HTTP GET or Post for AJAX calls?
-
Is the server or the client in control in AJAX?
-
Explain in brief about XMLHttpRequest object.
-
Describe the formats and protocols used by AJAX.
-
What AJAX framework do you recommend for PHP applications?
-
What kinds of applications is Ajax best suited for?
-
Describe how to handle concurrent AJAX requests.
-
When should AJAX NOT be used?
-
Explain how to test AJAX code.
-
List out the differences between AJAX and JavaScript.
-
What problem does Ajax solve?
-
What are issues with AJAX?
-
Is AJAX code cross browser compatible?
-
How do you know that an AJAX request has completed?
-
How do I handle the back and forward buttons?
Click here to share knowledge by answering these
questions
|
|