1. #1
    Sencha User
    Join Date
    Mar 2010
    Posts
    492
    Vote Rating
    1
    abcdef is on a distinguished road

      0  

    Default 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:

    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.'
                    }
                ]
            });
        }
    });
    The above gives me an error:

    Cannot init QuickTipManager: no document body


    Then I tried:

    Code:
    enableQuickTips: false
    That gives me:

    TypeError: 'null' is not an object (evaluating 'me.el.dom') in Renderable.js (397)

    Can someone help me get past this?

    Thanks in advance!

  2. #2
    Sencha - Support Team slemmon's Avatar
    Join Date
    Mar 2009
    Location
    Boise, ID
    Posts
    6,062
    Vote Rating
    215
    slemmon has much to be proud of slemmon has much to be proud of slemmon has much to be proud of slemmon has much to be proud of slemmon has much to be proud of slemmon has much to be proud of slemmon has much to be proud of slemmon has much to be proud of slemmon has much to be proud of

      0  

    Default


    I was thinking that the Application enabled quicktips itself unless you passed enableQuickTips: false in its config. No?

  3. #3
    Sencha - Support Team scottmartin's Avatar
    Join Date
    Jul 2010
    Location
    Houston, Tx
    Posts
    9,197
    Vote Rating
    482
    scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future

      0  

    Default


    Try the following:
    Ext.QuickTips.init();

    Regards,
    Scott.

  4. #4
    Sencha User
    Join Date
    Mar 2010
    Posts
    492
    Vote Rating
    1
    abcdef is on a distinguished road

      0  

    Default


    Quote Originally Posted by slemmon View Post
    I was thinking that the Application enabled quicktips itself unless you passed enableQuickTips: false in its config. No?
    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.

  5. #5
    Sencha User
    Join Date
    Mar 2010
    Posts
    492
    Vote Rating
    1
    abcdef is on a distinguished road

      0  

    Default


    Quote Originally Posted by scottmartin View Post
    Try the following:
    Ext.QuickTips.init();

    Regards,
    Scott.
    Doesn't work either. I'm not worried about enabling quick tips for now as much as I'm worried about nothing being rendered on the page.

  6. #6
    Sencha - Support Team scottmartin's Avatar
    Join Date
    Jul 2010
    Location
    Houston, Tx
    Posts
    9,197
    Vote Rating
    482
    scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future

      0  

    Default


    It loads fine here .. see if this works for you: (update path to extjs)
    Pasted your code in example.js

    created index.html
    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>
    Regards,
    Scott.

  7. #7
    Sencha User
    Join Date
    Mar 2010
    Posts
    492
    Vote Rating
    1
    abcdef is on a distinguished road

      0  

    Default


    Quote Originally Posted by scottmartin View Post
    It loads fine here .. see if this works for you: (update path to extjs)
    Pasted your code in example.js

    created index.html
    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>
    Regards,
    Scott.
    Thank you for your time. The examples work fine - I've confirmed that. Could it have anything to do with the fact that mine is actually XHTML?

  8. #8
    Sencha User
    Join Date
    Mar 2010
    Posts
    492
    Vote Rating
    1
    abcdef is on a distinguished road

      0  

    Default


    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.

Thread Participants: 2