Side navigation
#6106 closed bug (fixed)
Opened February 16, 2010 09:52PM UTC
Closed January 14, 2011 03:25AM UTC
Last modified March 14, 2012 12:01AM UTC
Data argument is undefined in success method of $.ajax in IE7
| Reported by: | ppickard | Owned by: | jaubourg | 
|---|---|---|---|
| Priority: | high | Milestone: | 1.5 | 
| Component: | ajax | Version: | 1.4 | 
| Keywords: | json,ajaxrewrite | Cc: | |
| Blocked by: | Blocking: | 
Description
When using dataType:"json" in a .ajax method, the data object is undefined in ie6/ie7. It works fine in ie8/ff.
I was able to get to the data through the XMLHttpRequest argument, just not directly through the data argument.
Attachments (0)
Change History (6)
Changed October 26, 2010 05:59PM UTC by comment:1
Changed October 27, 2010 04:49PM UTC by comment:2
| milestone: | 1.4 → 1.5 | 
|---|---|
| priority: | → high | 
| status: | new → open | 
Verified to be true.
#5156 has a bit more insight and was first, but we can just keep it clean.
Changed December 27, 2010 08:31PM UTC by comment:3
| owner: | → jaubourg | 
|---|---|
| status: | open → assigned | 
This needs to be reverified with the new ajax module.
Changed December 27, 2010 09:09PM UTC by comment:4
| keywords: | json → json ajaxrewrite | 
|---|
Changed December 27, 2010 10:37PM UTC by comment:5
| keywords: | json ajaxrewrite → json,ajaxrewrite | 
|---|
Changed January 14, 2011 03:25AM UTC by comment:6
| resolution: | → fixed | 
|---|---|
| status: | assigned → closed | 
Ajax now uses parseJSON internally which actually returns null for non-string and empty values. So it's safe to say this is fixed (I had to look into #5156 to understand the issue so I invite readers to go there if they're as lost as I was).
#5156 is a duplicate of this ticket.