First, the request is submitted for the page data display, at this time the user generally do not want to see the page refresh, is a best use of Ajax.
Second, if the request is submitted, the user can feel the results from the page, it is also best not to have a page refresh, it is recommended to use AJAX technology.
Third, if the request is submitted, the user cannot feel the commit action from the page, such as the vast majority of times the data increase and modification, this time will need to refresh the page, can not use AJAX technology.
The complex UI, which used to be an escape method for the UI,B/S model of the complex C/S model, can now be safely resolved using AJAX.
Frequently asked questions resolved:
1, first, the question of the input value check the user's time when the user is checked for duplicates, with Ajax access to the background, neither need to refresh the page, nor too many JS code
2, second, cascade display problems to access the background bar, the page needs to be refreshed; JS code is large, affect the memory, the data is unsafe; so the regular cascade selection box, cascading menu, navigation tree, etc.
3, third, the request results only change part of the page, such as the Forum's reply posts and posts list on a page. These two UI on one page, the user experience is better than replying to a post on another page. But after the reply to the entire page to refresh, this feeling is not good. You see, so big a list of posts, only to increase your one reply, but to the entire page to refresh, no matter from which point of view is not good.
4, IV, the use of IFRAME for technical reasons to avoid the introduction of IFRAME embedded technical problems
5, five, data entry and list display in the same page C/S mode UI often has data entry and data list display in the same interface, so for the user has a good user experience, user input results immediately can be displayed in the same interface. However, in the B/S UI, due to the need to submit the refresh problem, we often put the data input and data display on two different pages respectively. Obviously, this kind of user experience certainly does not have the C/s mode. There are many problems like this, in the B/S mode, because of technical reasons and choose other solutions. Now we can proudly use Ajax to announce that we can make a UI as complex as the C/S mode.
6, Page Six, paging problem does not need to refresh the page
When is Ajax supposed to be used?