• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Status of AJAX

 
Rahul Bhattacharjee
Ranch Hand
Posts: 2308
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As the processing of AJAX takes place behind the scene how can a user get to know about its processing.
How can this be achieved in a proper way?

Say , I am doing form validation .As soon as the user tabs out of a field and gets into the next one.A AJAX request is sent to the server with the value of the previous field for validation and this process continues.So when the client is waiting for the response from the server , how can this be intimated to the client.
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
show a layer(div) with a loading/working message. Add a bit of wow with an indicator: http://www.ajaxload.info/

Eric
 
Muhammad Saifuddin
Ranch Hand
Posts: 1324
Android Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Rahul Bhattacharjee:
As the processing of AJAX takes place behind the scene how can a user get to know about its processing.
How can this be achieved in a proper way?



The readyState property holds the status of the server's response.

readyState is the member XMLHttpRequest Object.
there you can check some possible values for readyState property.
 
Gregg Bolinger
GenRocket Founder
Ranch Hand
Posts: 15302
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Prototype has cool built in support for this:



Taken from here.
 
Rahul Bhattacharjee
Ranch Hand
Posts: 2308
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Eric Pascarello:
show a layer(div) with a loading/working message. Add a bit of wow with an indicator: http://www.ajaxload.info/

Eric


Yes , this sounds great , even I can use the build in functionality provided by prototype for this.

Thanks to all.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic