Skip to main content

Bug Tracker

Side navigation

#2258 closed enhancement (invalid)

Opened January 30, 2008 10:33PM UTC

Closed May 15, 2008 08:30PM UTC

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);
	}
}
);
Attachments (0)
Change History (1)

Changed May 15, 2008 08:30PM UTC by flesler comment:1

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.