DWR, JSON, and IE6: beware keywords

1 min read >

DWR, JSON, and IE6: beware keywords

Engineering Insights & Enterprise solutions & Web Platforms

Spent quite a bit of time investigating an “IE bug”. What happened: a particular AJAX request would work fine in Firefox but nothing would happen in IE6. The obvious steps were to monitor request and response (all fine), JS imports in files (all fine).

The final explanation was quite simple: that particular object (Customer), contained a field called “function”. The JSON string returned by DWR was correctly interpreted by FF but would make IE6 hang. The simple solution: rename the field and beware of any other JS keywords.