AJAX and JavaScript: List out differences between AJAX and JavaScript


AJAX and JavaScript

Ajax  - List out differences between AJAX and JavaScript. - Feb 27, 2010 at 22:40 pm by Shuchi Gauri

List out differences between AJAX and JavaScript.

JavaScript is a client-side script, used to control a web page at the client side once it has downloaded. The validations in case of JavaScript will be handled particularly on client’s browser and no server side requests will be handled. AJAX allows JavaScript to communicate with the remote script and receive the response from the server, without the need to reload the entire page. JavaScript is the base on which Ajax works.

List out differences between AJAX and JavaScript.

Ajax is Asynchronous Java Script and XML. Here on sending request to the server, one needn’t wait for the response. Other operations on the page can be carried out. Hence, Asynchronous. On the other hand, Java script sends an HTTPRequest to the server and waits for the XML response. 

E.g. populating State field. Using JavaScript we need to use the “Onchnage” event where as using ajax, the request is just sent to populate the state list. Other operations can be carried out on the page. 

Ajax is a part of Java Script programming. Java Script is used to manage and control a web page once downloaded. Ajax does not need to wait for the whole page to download. 

Use of Ajax can reduce connections to the server since the script has to be requested once. 


Test your ASP.NET Skills

ASP.NET (41 questions)
ASP.NET (16 questions)
C#.NET (38 questions)
VB.NET (33 questions)
.NET Framework (26 questions)
ADO.NET (10 questions)

Write your comment - Share Knowledge and Experience

Discussion Board
I suggest you on one thing

When i attempting quiz with out selecting option and i clicked on next ist shows exception please try to avoid that because enduser things very bad on about your site.i think you understand i hope you modified early.

Nuthan 07-12-2012 01:21 AM


More Related Links
AJAX Libraries

In addition to ASP.NET AJAX, many third-party AJAX libraries are available that can be used with ASP.NET, although not all of them were specifically designed for it. Some are mostly focused on providing JavaScript libraries for use from within the browser to make manipulation of the browser DOM (Document Object Model) easier..................

Balancing Client and Server Programming with ASP.NET AJAX

Without the advanced use of JavaScript running in the browser, web applications have their logic running on the server. This means a lot of page refreshes for potentially small updates to the user’s view. With AJAX, much of the logic surrounding user interactions can be moved to the client..........

Understanding AJAX

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 and retrieve additional data as needed, updating certain portions of the page without causing full page reloads.............

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.

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.

Latest placement tests
Latest links
Latest MCQs
» General awareness - Banking » ASP.NET » PL/SQL » Mechanical Engineering
» IAS Prelims GS » Java » Programming Language » Electrical Engineering
» English » C++ » Software Engineering » Electronic Engineering
» Quantitative Aptitude » Oracle » English » Finance
Home | About us | Sitemap | Contact us