• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer
  • Core Java
  • Design Patterns
  • JSP
  • Servlets
  • Building Tools
  • jQuery
  • Spring
  • Hibernate
  • Mongo DB
  • More
    • HTML
    • SCJP
    • AJAX
    • UML
    • Struts
    • J2EE
    • Testing
    • Angular JS

J2EE Reference

  • Home
  • About Us
    • Java Learning Centers
  • Contact Us

What is AJAX ?

December 21, 2010 By j2eereference 2 Comments

AJAX is “Asynchronous Java Script and XML”. AJAX is a type of programming, which became popular in 2005 by Google,  Mainly used to refresh a part of a HTML/JSP  page but not the entire page.

With AJAX we can create better, faster, and more user-friendly web applications.

AJAX is based on Javascript and HTTP request .Data retrieval is commonly in the form of XML and using DOM we will parse the XML and populate the data we need.

One example for applying AJAX is Alphabet and name .In this example , We have all the alphabets in the drop down list and on select of any alphabet , the list of all the names starting with that particular alphabet will be showing in a list box.In this situation we can use  “AJAX” to send the request to back end for getting the Names list.As we are sending the request in back end and we are not waiting for the response, we can continue with another operations on the page.Using Java Script, onChange event of the alphabet  we will send the request using the XMLHTTPRequest object to a back end process to handle the request and then the response we will get as an XML, using DOM we will parse the XML and populate the data and display the names.

Filed Under: AJAX

Reader Interactions

Comments

  1. Hilma Dauila says

    May 28, 2011 at 6:11 pm

    Nice site, nice and easy on the eyes and great content too.

    Reply
  2. Krishna says

    October 12, 2011 at 2:04 pm

    Very nice tutorial!!! Keep up your good work

    Reply

Leave a Reply Cancel reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Primary Sidebar

FOLLOW US ONLINE

  • View J2eereference-166104970118637’s profile on Facebook
  • View j2eereference’s profile on Twitter
  • View j2eereference’s profile on LinkedIn

Subscribe by email

Recent posts

  • What is parallel Stream
  • reduce method of the Stream class
  • Difference between the findFirst() and findAny() method
  • intern() method of String class
  • SOLID – Five principles of object-oriented software design
  • Java Coding Best Practices
  • How to use lambda expression effectively
  • Enhanced pseudo-Random Number Generators in java17
  • How to use Foreign-Memory Access API
  • Pattern Matching for instanceof
  • Text Blocks – Feature added in Java17
  • Record – The new feature added in java 17
  • What is Sealed Class
  • Features added in Java 17
  • Java Buzzwords

Footer

Core Java
Design Patterns
JSP
Servlets
HTML
Building Tools
AJAX
SCJP
jQuery
Testing
Spring
UML
Struts
Java Centers
Java Training
Home
About Us
Contact Us
Copyright © j2eereference.com. All right reserved.