radha1 Posted June 5, 2010 Share Posted June 5, 2010 difference between post and get in ajax? when we go for post and get give me the examples plz? Link to comment Share on other sites More sharing options...
End User Posted June 5, 2010 Share Posted June 5, 2010 difference between post and get in ajax? when we go for post and get give me the examples plz?Have a look here: http://www.xul.fr/en-xml-ajax.html Link to comment Share on other sites More sharing options...
jeffman Posted June 5, 2010 Share Posted June 5, 2010 Use POST when you need to send a lot of information to the server, or when there is a chance that the data returned by the server from the same URL will be different every time it is accessed by the same user. Browsers usually cache (store in memory) results returned by a GET request. This allows pages to load very fast after the first time you access them. So it is appropriate when the data does not change (like a normal web page). If the data might changes (like a chat room or a weather report) then POST is better.FWIW, most AJAX developers use POST for all AJAX operations. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.