PDA

View Full Version : [SOLVED][ext ver 1 a2]Ext.util.JSON.decode not working in IE



kimu
6 Mar 2007, 11:44 AM
Ext.util.JSON.decode() gives 'method or property not supperted by the object' in IE.
Both 6 and 7.

my function code is:
(success of an ajax call)



var successRetrieve = function(o){
groups = Ext.util.JSON.decode(o.responseText);
groupsPnl = Ext.get('groups');
groupsPnl.update();
gui.List(groupsPnl,groups,'<span class="body">{Name}</span> (#)');
};

Bye

brian.moeskau
6 Mar 2007, 11:48 AM
Initial guess would be that your data is not formatted correctly. Please post the value of 'o.responseText' so we can see what's getting parsed.

kimu
6 Mar 2007, 12:33 PM
IT's not a bug!!! I'm sorry...

my o.responseText was correct, it was a variable scope issue.

Bye