Extending the library - AJAX

The current library might be improved in a number of ways.These will be left as an exercise for the reader, though in many cases the techniques have been covered else where in the book.

User feedback, for example, has not been addressed; we previously discussed how the display of suitable text or a graphic image can alert the user that a request is currently in progress. It would be useful to revise the library to include the techniques.

Error handling, too, has been excluded from the code and would prove a useful addition. For example, it should not be too difficult to modify the library to detect XMLHTTPRequest status properties other than 200 and output a suitable error message to the user. Feel free to experiment with the code and see what you can achieve.

All rights reserved © 2020 Wisdom IT Services India Pvt. Ltd DMCA.com Protection Status

AJAX Topics