Skip to main content

Bug Tracker

Side navigation

#5433 closed feature (wontfix)

Opened October 30, 2009 11:20PM UTC

Closed November 11, 2009 08:04PM UTC

$( 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.

Attachments (0)
Change History (2)

Changed October 31, 2009 12:57AM UTC by kenman comment:1

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] );

Changed November 11, 2009 08:04PM UTC by john comment:2

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.