-
26 Sep 2012 1:38 AM #1
Unanswered: Basic problem
Unanswered: Basic problem
Hello,
i'm getting started with sencha right today, and i found the first problem :|
can someone explain me what is happening????
whit this works:
and this doesn't work:Code:<!DOCTYPE html> <html> <head> <script type="text/javascript" src="http://cdn.sencha.io/touch/1.1.0/sencha-touch.js" ></script> <link rel="stylesheet" href="http://cdn.sencha.io/touch/1.1.0/resources/css/sencha-touch.css" type="text/css" /> <script type="text/javascript" > new Ext.Application({ launch: function() { new Ext.Panel({ fullscreen: true, dockedItems: [{xtype:'toolbar', title:'My First App'}], layout: 'fit', styleHtmlContent: true, html: '<h2>Hello World!</h2>I did it!' }); } }); </script> </head> <body></body> </html>
obviously the path are correct, and i can read them from google chrome inspect element function.Code:<!DOCTYPE html> <html> <head> <script type="text/javascript" src="touch/sencha-touch-debug.js"></script> <link rel="stylesheet" href="touch/resources/css/sencha-touch.css" type="text/css" /> <script type="text/javascript" > new Ext.Application({ launch: function() { new Ext.Panel({ fullscreen: true, dockedItems: [{xtype:'toolbar', title:'My First App'}], layout: 'fit', styleHtmlContent: true, html: '<h2>Hello World!</h2>I did it!' }); } }); </script> </head> <body></body> </html>
thank you
-
28 Sep 2012 6:04 AM #2Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 34,121
- Vote Rating
- 453
- Answers
- 3160
What isn't working? Do you get 404 errors for the script and link tags? Do you get any errors?
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.
-
28 Sep 2012 6:10 AM #3
the differents between two pages are only the locations of css and js files.
the difference is just that one works ("Hello World" appears on the screen) and the other one doesn't! no strange errors
-
28 Sep 2012 6:42 AM #4Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 34,121
- Vote Rating
- 453
- Answers
- 3160
As long as you are loading Sencha Touch 1 (not 2) then it should be fine.
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.


Reply With Quote