I need to retrieve a simple page and use the data that it returns. Is there any difference between $.post()
and $.get()
should I be using one over the
The main difference between them is that with POST you pass a collection of data and with GET you pass data in the URL. If you're passing a lot of data I'd suggest POST. If you're just calling a URL for a response then use get.
For a full understanding though checkout the jQuery documentation of each.
GET: http://api.jquery.com/jQuery.get/
POST: http://api.jquery.com/jQuery.post/