PDA

View Full Version : xmlReader xmlData IE7 Problem



RuneSpyder
20 Sep 2007, 1:41 PM
I have an onLoad event firing for a datastore that is using an xmlReader and an HttpProxy. When the event fires, I get the store,records and options passed into my function.

The problem is that the xmlReader.xmlData property of the store does not contain any data in IE, but it does contain data in Firefox. It is still parsing my data the way that I would expect but for some reason that property is always empty in IE 7?



ds.on('load', callback);

function callback(oStore, aRecords, oOptions){
if (oStore.getTotalCount() == 0)
{
var oReader = oStore.reader;
var oXML = oReader.xmlData;
YAHOO.log(oXML);
}
}

RuneSpyder
20 Sep 2007, 3:23 PM
Did some more debugging and when I do some logging inside of the readRecords function of the xmlReader, I can see this.xmlData and doc, which is passed into the functions.

When I enumerate through all of the properties of the store, I can see the xmlData property, but when I try to get it's value, I get an "undefined" error in IE7.



for (var i in oStore.reader){
YAHOO.log(i);
}

YAHOO.log(oStore.reader.xmlData, 'data');

RuneSpyder
21 Sep 2007, 9:50 AM
Anyone?

joseluisrios
25 Mar 2008, 8:10 AM
any-one?