-
14 Nov 2011 1:02 AM #1
ext.domquery.isxml is undefined
ext.domquery.isxml is undefined
Hi,
while trying to parse xml through an ajax proxy, i'm getting this error:
As far as i understand, "ext.domquery.isxml" isn't even defined.Uncaught TypeError: Object [object Object] has no method 'isXml'
related code segment:
any ideas?Code:model: 'app.models.Category', autoLoad: false, proxy: { type: 'ajax', url: 'test.xml', reader: { type: 'xml', root: 'items', record: 'item' } }
-
14 Nov 2011 10:45 AM #2Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,684
- Vote Rating
- 435
What does your XML look like?
Mitchell Simoens @SenchaMitch
Sencha Inc, Senior Forum Manager
________________
http://www.JSONPLint.com - Source to lint your JSONP!
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
https://github.com/mitchellsimoens
Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/
Need more help with your app? Hire Sencha Services services@sencha.com
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is almost in print!
When posting code, please use BBCode's CODE tags.
-
15 Nov 2011 12:46 AM #3
"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
-
18 Nov 2011 4:40 AM #4
looks like it's a bug!
changing:
to: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); }
in "sencha-touch-all-debug-w-comments.js" does the trick for me!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); }
-
21 Nov 2011 2:26 PM #5
It seems isXml didn't get into Touch's version of DomQuery.
Sencha Inc.
Robert Dougan - @rdougan
Sencha Touch 2 and Ext JS 4 Core Team Member, SASS/Theming Wizard.
Success! Looks like we've fixed this one. According to our records the fix was applied for
TOUCH-1059
in
2.0.


Reply With Quote