-
8 Apr 2012 6:36 AM #1
Answered: Touch Carts integration?
Answered: Touch Carts integration?
Hello all,
I have been attempting to integrate touch charts 2 into sencha touch 2 with decent success up until now.
When I run the app I get this err:
So I follow this to line 7044 of touch-charts.js and get this:Code:Uncaught TypeError: Cannot read property 'pseudos' of undefined
Now with the comment that it's not suppose to be there I would make the assumption that I can comment it out? So when I did comment it out the same err just happened later on line 7052.Code://TODO(nico): I'm pretty sure this shouldn't be here. Ext.ComponentQuery.pseudos['nth-child'] = function(items, value) { var index = +value -1; if (items[index]) { return [items[index]]; } return []; };
Not sure why EXT.CompnentQuery would be undefined?Code:Ext.ComponentQuery.pseudos.highlight = function(items, value) { var i = 0, j = 0, l = items.length, ans = [], item, refItems, refItem, lRefItems; for (; i < l; ++i) { item = items[i]; if (item.isXType && item.isXType('highlight')) { ans.push(item); } if (item.getRefItems) { refItems = item.getRefItems(true); for (j = 0, lRefItems = refItems.length; j < lRefItems; ++j) { refItem = refItems[j]; if (refItem.isXType && refItem.isXType('highlight')) { ans.push(refItem); } } } } return ans; };
Any help would be great.
Thanks
Jason
-
Best Answer Posted by mitchellsimoens
You will need to use the touch-charts.js and sencha-touch.js files that come in the touch charts release.
-
8 Apr 2012 7:21 AM #2Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,682
- Vote Rating
- 435
- Answers
- 3111
You will need to use the touch-charts.js and sencha-touch.js files that come in the touch charts release.
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.
-
8 Apr 2012 11:13 AM #3
Perfect, thanks Mitchell appreciated the help.
Jason
-
10 Apr 2012 5:05 AM #4
I replaced sencha-touch.js that come with touch charts release but now when I run the app I get this err:
Code:Uncaught Error: Ext.Loader is not enabled, so dependencies cannot be resolved dynamically. Missing required classes: Mobile.view.Main, Mobile.view.LeftBar, Mobile.view.PanelCenter, Mobile.controller.Main
-
10 Apr 2012 7:09 AM #5
Loader not enabled
Loader not enabled
Add this line:
before:Code:Ext.Loader.setConfig({enabled: true});
That should get rid of that err.Code:Ext.Loader.setPath({ 'Ext': 'sdk/src' });
Jason
-
10 Apr 2012 7:13 AM #6
-
16 Apr 2012 1:23 PM #7
sencha-touch-2.0.1-rc/sencha-touch-all-debug.js
sencha-touch-2.0.1-rc/sencha-touch-all-debug.js
In case anyone is wondering, touch-charts.js from touch-charts-2.0.0-beta works with sencha-touch-all.js and sencha-touch-all-debug.js from sencha-touch-2.0.1-rc.
Cheers,
Don
-
17 Apr 2012 6:56 AM #8
Chart 2.0 integration error
Chart 2.0 integration error
Hello !!
I am getting same error. i wanted to use charts and normal sencha touch. so when i try to ingrate both code i am getting above error. as per above solution i am pointing to sencha-touch.js and touch-chart.js of Touch charts
folder only. but still i am facing same error. what about SRC folder files?.we need to do any modifications there?
also resources folder?
Will i get all funactionalities of sencha touch and charts.?
also i am facing below error
Failed to load resource: the server responded with a status of 404 (Not Found)
avenir_lt_85_heavy-webfont.woffFailed to load resource: the server responded with a status of 404 (Not Found)
ave.woffFailed to load resource: the server responded with a status of 404 (Not Found)
ave.ttfFailed to load resource: the server responded with a status of 404 (Not Found)
avenir_lt_55_roman-webfont.ttfFailed to load resource: the server responded with a status of 404 (Not Found)
avenir_lt_85_heavy-webfont.ttfFailed to load resource: the server responded with a status of 404 (Not Found)
ave.svgFailed to load resource: the server responded with a status of 404 (Not Found)
avenir_lt_55_roman-webfont.svgFailed to load resource: the server responded with a status of 404 (Not Found)
avenir_lt_85_heavy-webfont.svgFailed to load resource: the server responded with a status of
i think these are font files.
Thanks!! please help me out....!
-
18 May 2012 12:11 PM #9
Is there any chance it will work with the apps the sencha tool generates out of the box? I like the ...
Ext.application
approach and don't think I want to change such an app much to comply with touch-charts.
-
20 May 2012 11:37 AM #10
... that bundled sencha-touch.js does not even have a NavigationView. I think I'll put off using touch-charts until it is really 2.0.x-compatible.


Reply With Quote