PDA

View Full Version : XMLReader error in Internet Explorer



Tremor
21 May 2009, 7:14 AM
Hello. I have a trouble with using XMLReader in InternetExplorer.
When i'm using read() or readRecords() methods, i have an error here:

function(path,root,defaultValue){path=path.replace(trimRe,"");That variable "path" is undefined.
But when i use Firefox, Opera, Safari or Chrome it's ok.
PS This is XML reader.


var RecordDef = Ext.data.Record.create([
{name: 'body'},
{name: 'type'},
{name: 'author'},
{name: 'authorid'},
{name: 'keywords'},
{name: 'keywordsid'},
]);
var myReader = new Ext.data.XmlReader({
totalRecords: "results",
record: "row",
id: "id"
}, RecordDef);
And this is my XML file:


<dataset>
<results>34</results>
<row>
<id>1728</id>
<body>*****</body>
<type>3</type>
<author/>
<authorid/>
<keywords/>
<keywordsid/>
</row>
...
</dataset>

Help me please. Thanks! :)

Animal
21 May 2009, 7:29 AM
TRailing comma!

Tremor
21 May 2009, 7:42 AM
Oops, sorry for my silly question.
Thanks you very much, Animal!