Bug Tracker

Modify

Ticket #5433 (closed feature: wontfix)

Opened 4 years ago

Last modified 4 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 4 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 4 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.

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.