This is one of my NetBeans code completion templates that I use for jQuery ajax requests to insert all of the pieces that I use in pretty much every request. I got tired of having to type all of this every time, and I got tired of having to copy this over every time I move to a different computer so it's a Gist now...
I use $ajax
as the trigger for this template, but anything should work.