Bug Tracker

Opened 13 years ago

Closed 13 years ago

#5433 closed feature (wontfix)

$( sel ).ajax( [ajaxOptions] )

Reported by: kenman Owned by:
Priority: minor Milestone: 1.4
Component: ajax Version: 1.3.2
Keywords: api Cc:
Blocked by: Blocking:

Description

++ Syntactical Sugar to load content into a DOM element -- no SS to alter ajaxOptions at runtime $( sel ).load( url );

++ SS to alter ajaxOptions at runtime -- no SS to load content into a DOM element $.ajax( [ajaxOptions] );

the marriage $( sel ).ajax( [ajaxOptions] );

I've written this is a custom plugin, but it seems like something that is simply missing from the AJAX API.

Change History (2)

comment:1 Changed 13 years ago by kenman

Sorry about the formatting, here's a better version:

// ++ Syntactical Sugar to load content into a DOM element 
// -- no SS to alter ajaxOptions at runtime 
$( sel ).load( url );

// ++ SS to alter ajaxOptions at runtime 
// -- no SS to load content into a DOM element 
$.ajax( [ajaxOptions] );

// the marriage 
$( sel ).ajax( [ajaxOptions] );

comment:2 Changed 13 years ago by john

Resolution: wontfix
Status: newclosed

In cases such as this we simply recommend that you use $.ajax() directly. We try to keep the load/get/post methods nice and simple for the common case.

Note: See TracTickets for help on using tickets.