Bug Tracker

Ticket #5433 (closed feature: wontfix)

Opened 5 years ago

Last modified 5 years ago

$( sel ).ajax( [ajaxOptions] )

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

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

comment:1 Changed 5 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 5 years ago by john

  • Status changed from new to closed
  • Resolution set to wontfix

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.