I’m trying to find where jQuery.ajax() is defined in their source code. However, using grep does not seem to work.
Where is it?
Thank you.
> grep jQuery.ajax src/*
src/ajax.js:// Base "constructor" for jQuery.ajaxPrefilter and jQuery.ajaxTransport
src/ajax.js: flatOptions = jQuery.ajaxSettings.flatOptions || {};
src/ajax.js: params = jQuery.param( params, jQuery.ajaxSettings.traditional );
src/ajax.js: jQuery.ajax({
src/ajax.js: return jQuery.ajax({
src/ajax.js: ajaxExtend( target, jQuery.ajaxSettings );
src/ajax.js: target = jQuery.ajaxSettings;
src/ajax.js: s = jQuery.ajaxSetup( {}, options ),
src/ajax.js: traditional = jQuery.ajaxSettings.traditional;
src/ajax.js:// Want to move this to jQuery.ajax some day
src/manipulation.js: jQuery.ajax({
Here you go: http://james.padolsey.com/jquery/#v=1.6.2&fn=jQuery.ajax
That site is very useful for going through the jQuery source code.
Source in case above link goes dead: