Results 1 to 6 of 6

Thread: Explain the important Methods and Properties of the XMLHttpRequest object

  1. #1
    Join Date
    Nov 2009
    Posts
    45

    Explain the important Methods and Properties of the XMLHttpRequest object

    I am learning AJAX programming language. I have earlier studied Core Java and Java Scripting language. But still I find AJAX a bit difficult to understand. Now I am confused on AJAX - The XMLHttpRequest Object topic. Can any one explain to me the important Methods and Properties of the XMLHttpRequest object for AJAX programming language.

  2. #2
    Join Date
    May 2008
    Posts
    2,012

    Methods of the XMLHttpRequest object

    There are two very important methods of Ajax XMLHttpRequest object. These are:
    • The open() method
    • The send() method
    Both these methods are required to pass the request to the web server.
    There are three different arguments in the open() method whereas the send() method is used to pass the request to the server.

  3. #3
    Join Date
    Feb 2008
    Posts
    1,852

    The readyState property

    I have completed my Ajax programming language last month and I had to admit that even I had a tough time learning it. I have not even studied any other programming language prior to this. I can help you with the readyState property of the XMLHttpRequest object. The status of the server's response is stored in the readyState property.

  4. #4
    Join Date
    Oct 2005
    Posts
    2,393

    Important Methods and Properties of the XMLHttpRequest object

    Following are the crucial properties of XMLHttpRequest object for AJAX:
    • The readyState property
    • The responseText property
    • The onreadystatechange property

    Following are the crucial methods of XMLHttpRequest object for Ajax:
    • The send() method
    • The open() method

    These are required for the XMLHttpRequest Object.

  5. #5
    Join Date
    Apr 2008
    Posts
    1,948

    The responseText property of the XMLHttpRequest object

    The responseText property is required to hold the data which is retrieved by the XMLHttpRequest object from the server when the server request was sent. This is very important property of the XMLHttpRequest object which has three main properties.

  6. #6
    Join Date
    May 2008
    Posts
    2,297

    The onreadystatechange property of AJAX

    The function to be called each time when the readyState property is modified is contained in the onreadystatechange property. The onreadystatechange property stores the name of that function. Where as following are the values of the readyState property:
    0-The request is not initialized
    1-The request has been set up
    2-The request has been sent
    3-The request is in process
    4-The request is complete

Similar Threads

  1. static methods in object oriented programming
    By Satchel in forum Software Development
    Replies: 5
    Last Post: 07-01-2011, 09:58 PM
  2. Explain the difference between == & .equals methods in Java?
    By Harpreet Gaur in forum Software Development
    Replies: 5
    Last Post: 30-01-2010, 11:36 AM
  3. How to create the XMLHttpRequest Object?
    By Bigga Lexx in forum Software Development
    Replies: 5
    Last Post: 29-01-2010, 07:34 PM
  4. Explain XML Document Object Model and XML Related Technologies?
    By Javiier in forum Software Development
    Replies: 5
    Last Post: 24-12-2009, 12:59 AM
  5. Explain the Global.asa file and ASPError Object in ASP
    By Juan-Carlos in forum Software Development
    Replies: 5
    Last Post: 22-12-2009, 06:12 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,711,672,869.04570 seconds with 16 queries