Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Undefined Ext for ExtJs

Tags:

extjs

extjs4

New to ExtJs. I have looked at a bunch of threads, but everything I try is not working. I am using ExtJS 4 and I keep getting and undefined Ext error for the following code:

<html>
<head>

    <script type="text/javascript" src="/extjs/ext-all.js"></script>
    <script type="text/javascript" src="app.js"></script>
</head>
<body></body>
</html>

//app.js
Ext.application({
    name: 'HelloExt',
    launch: function() {
        Ext.create('Ext.container.Viewport', {
            layout: 'fit',
            items: [
                {
                    title: 'Hello Ext',
                    html : 'Hello! Welcome to Ext JS.'
                }
            ]
        });
    }
});
like image 678
user2016877 Avatar asked Aug 15 '26 14:08

user2016877


1 Answers

Check the path of ext-all.js. Make sure the first slash is correct?

like image 183
ssinganamalla Avatar answered Aug 17 '26 04:08

ssinganamalla



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!