I’ve decided to go with jQuery for all my AJAX related client side needs.
But jQuery has way too many functions for the same task: $.post, $.get, $.ajax, $.getJSON…
My question is what should I use?
EDIT:
I’m going to use POST and JSON to connect to CodeIgniter PHP framework.
Thank you.
Use
$.ajaxand always, always, always include theerrorparameter (which the shorthand$.postand$.getinexplicably leave out — sometimes short is a bit too short). Unless you live in a perfect world where nothing ever goes wrong, in which case, where do I sign? 🙂