Bug Tracker

Opened 12 years ago

Closed 12 years ago

#2258 closed enhancement (invalid)

Ajax sending data to response functions

Reported by: Bash Owned by:
Priority: minor Milestone: 1.2.4
Component: ajax Version: 1.2.2
Keywords: Cc:
Blocked by: Blocking:

Description

When a response comes back from AJAX, there's no way to refer it to a particular object (especially if that object itself is dynamic). I am requesting a syntax such as the following:

var element = 

jQuery.ajax (
{
	async:		false
	type:		'GET',
	url:		'url.php',
	cache:		false,
	dataType:	'xml',
	passThru:	{ object: element }
	success:	function (dataResponse, passThru)
	{
		// Will alert the 'element' item.
		alert (passThru.object);
	}
}
);

Change History (1)

comment:1 Changed 12 years ago by flesler

Milestone: 1.2.31.2.4
Priority: blockerminor
Resolution: invalid
Status: newclosed

Yes, you can access the settings hash by using "this". Check http://docs.jquery.com/Ajax/jQuery.ajax#options.

Note: See TracTickets for help on using tickets.