There are a number of things you need to consider in setting up processing to send and/or retrieve information from the server without reloading the web page. Some of these things are needed for every such call, some you get a choice between several options, and some are completely optional.
The things you must have in setting up your Ajax processing include:
We get a choice when it comes to how we:
If we wish we can also:
You also need to consider security with respect to what you pass and how you handle it on the server.
Further things you need to know about in order to use Ajax most effectively include:
The things you must have in setting up your Ajax processing include:
We get a choice when it comes to how we:
- Pass parameters
- What we want it to do if the request fails
- Whether we use XML or plain text for the response
- or both since they are returned in separate fields
If we wish we can also:
- Use JSON
- Use xmlDoc to parse XML
- Abort requests if they are taking too long
- Run multiple requests at the same time
- Cache results to avoid multiple server calls for the same info
You also need to consider security with respect to what you pass and how you handle it on the server.
Further things you need to know about in order to use Ajax most effectively include:
SHARE