Success! Looks like we've fixed this one. According to our records the fix was applied for
TOUCH-1059
in
a recent build.
-
Sencha User
ext.domquery.isxml is undefined
Hi,
while trying to parse xml through an ajax proxy, i'm getting this error:
Uncaught TypeError: Object [object Object] has no method 'isXml'
As far as i understand, "ext.domquery.isxml" isn't even defined.
related code segment:
Code:
model: 'app.models.Category',
autoLoad: false,
proxy: {
type: 'ajax',
url: 'test.xml',
reader: {
type: 'xml',
root: 'items',
record: 'item'
}
}
any ideas?
-
What does your XML look like?
-
Sencha User
"items" isn't exactly the first tag in my xml file, but the logical root to the records. Changing root to first tag in the xml file fixes the problem, because i'm getting around entering the else branch.
Code:
<category>
<category_info>
stuff...
</category_info>
<items>
<item>
stuff...
</item>
<item>
stuff...
</item>
</items>
</category
-
Sencha User
looks like it's a bug!
changing:
Code:
} else if (Ext.DomQuery.isXml(data)) {
// This fix ensures we have XML data
// Related to TreeStore calling getRoot with the root node, which isn't XML
// Probably should be resolved in TreeStore at some point
return Ext.DomQuery.selectNode(root, data);
}
to:
Code:
} else {
// This fix ensures we have XML data
// Related to TreeStore calling getRoot with the root node, which isn't XML
// Probably should be resolved in TreeStore at some point
return Ext.DomQuery.selectNode(root, data);
}
in "sencha-touch-all-debug-w-comments.js" does the trick for me!
-
Sencha User
It seems isXml didn't get into Touch's version of DomQuery.