Difference between Get and Post AJAX

Asked

Viewed 112 times

3

In AJAX, I have the functions $.post and $.get.

I’ve always used the $.post, and never had a problem.

  • But what’s the difference between them?
  • In what situations I should use each?

I searched here in the SO a question about it, because I was in doubt, but I did not find

  • @Lucascosta The question you indicated talks about the HTTP methods, this one talks about the use of these methods with Ajax.

  • @Renan You’re right, but there in the other answer have the information I sought, thanks anyway!

  • I considered as duplicate @Renan because the methods are different precisely due to the difference between HTTP methods, which is well detailed in the answer Victor.

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.