Opened 15 years ago
Closed 15 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 15 years ago by
Milestone: | 1.2.3 → 1.2.4 |
---|---|
Priority: | blocker → minor |
Resolution: | → invalid |
Status: | new → closed |
Note: See
TracTickets for help on using
tickets.
Yes, you can access the settings hash by using "this". Check http://docs.jquery.com/Ajax/jQuery.ajax#options.