-
3 Apr 2012 11:22 AM #1
Trying out 4.1 - Not having luck
Trying out 4.1 - Not having luck
I'm trying out 4.1 but it keeps throwing errors. I have a full application working on 4.0.2a and am trying to get it to work on 4.1. I started out simple. My app.js:
The above gives me an error:Code:Ext.Loader.setConfig({ enabled: true, paths: { 'Ext': 'behavior/lib/extjs41/src' } }); Ext.application({ name: 'HelloExt', launch: function() { Ext.create('Ext.container.Viewport', { layout: 'fit', items: [ { title: 'Hello Ext', html : 'Hello! Welcome to Ext JS.' } ] }); } });
Cannot init QuickTipManager: no document body
Then I tried:
That gives me:Code:enableQuickTips: false
TypeError: 'null' is not an object (evaluating 'me.el.dom') in Renderable.js (397)
Can someone help me get past this?
Thanks in advance!
-
3 Apr 2012 11:43 AM #2
I was thinking that the Application enabled quicktips itself unless you passed enableQuickTips: false in its config. No?
-
3 Apr 2012 11:44 AM #3
Try the following:
Ext.QuickTips.init();
Regards,
Scott.
-
3 Apr 2012 11:56 AM #4
When I did not specify enableQuickTips: false, the App tried to enable it but complained about no document body
When I did specify it to be false, I got the error: TypeError: 'null' is not an object (evaluating 'me.el.dom') in Renderable.js (397)
I'm not worried so much about quick tips (for now at least) as I am worried about nothing being rendered on the page because I'm not able to pass through these errors.
-
3 Apr 2012 11:58 AM #5
-
3 Apr 2012 12:08 PM #6
It loads fine here .. see if this works for you: (update path to extjs)
Pasted your code in example.js
created index.html
Regards,Code:<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>test</title> <link rel="stylesheet" type="text/css" href="../../extjs4/resources/css/ext-all.css"/> <link rel="stylesheet" type="text/css" href="../../extjs4/examples/shared/example.css" /> <script type="text/javascript" src="../../extjs4/ext-all-debug.js"></script> <!-- page specific --> <script type="text/javascript" src="example.js"></script> </head> <body> <h1>test</h1> </body> </html>
Scott.
-
3 Apr 2012 12:23 PM #7
-
3 Apr 2012 12:36 PM #8
OK. So looks like it works fine when I don't specify a 'title'. It gives me the TypeError: 'null' is not an object (evaluating 'me.el.dom') in Renderable.js (397) error when I specify a title.
Any ideas?
Edit: I got something to render when I removed 'title' config option. I'm going to close this as answered and open up a new thread for further problems.


Reply With Quote
