AJAX - The Complete Reference

(avery) #1

PART II


Chapter 9: Site and Application Architecture with Ajax 475


but it won’t have the id value used on the server until the confirmation returns, so the row
would have to use a temporary id just for the client side until the real one could be inserted.
This could introduce all sorts of problems if the user tries to edit or delete that item before
the confirmation comes back. As you can see, even in a simple CRUD-style application, if
you try to really get the best performance possible, you will introduce all sorts of network
concerns—this is what makes Ajax hard.

FIGURE 9-15 Ajax and traditional to-do lists side by side
Free download pdf