mdb
20 Apr 2012, 12:52 AM
Hi All,
I can't get the Ext.Loader warnings to show up! I copied the plain Ext JS folder to /extjs, my index.html and app.'s look like this:
Index.html
Code:
<html>
<head>
<title>Hello Ext</title>
<link rel="stylesheet" type="text/css" href="extjs/resources/css/ext-all.css">
<script type="text/javascript" src="extjs/ext-debug.js"></script>
<script type="text/javascript" src="app.js"></script>
</head>
<body></body>
</html>
app.js
Code:
Ext.onReady(function(){ var window = Ext.createWidget('window', {
width: 500,
height: 300,
layout: {
type: 'border',
padding: 5
},
title: 'Hello Dialog',
items: [{
title: 'Navigation',
collapsible: true,
region: 'west',
width: 200,
html: 'Hello',
split: true
}, {
title: 'TabPanel',
region: 'center'
}]
});
window.show();
})
After opening it, the window shows up perfectly, but no warning appears in the console. I'm using Safari and Chrome.
Am I doing something wrong? I've experience with the require function of Sencha Touch, which worked perfectly for me.
Thanks!
I can't get the Ext.Loader warnings to show up! I copied the plain Ext JS folder to /extjs, my index.html and app.'s look like this:
Index.html
Code:
<html>
<head>
<title>Hello Ext</title>
<link rel="stylesheet" type="text/css" href="extjs/resources/css/ext-all.css">
<script type="text/javascript" src="extjs/ext-debug.js"></script>
<script type="text/javascript" src="app.js"></script>
</head>
<body></body>
</html>
app.js
Code:
Ext.onReady(function(){ var window = Ext.createWidget('window', {
width: 500,
height: 300,
layout: {
type: 'border',
padding: 5
},
title: 'Hello Dialog',
items: [{
title: 'Navigation',
collapsible: true,
region: 'west',
width: 200,
html: 'Hello',
split: true
}, {
title: 'TabPanel',
region: 'center'
}]
});
window.show();
})
After opening it, the window shows up perfectly, but no warning appears in the console. I'm using Safari and Chrome.
Am I doing something wrong? I've experience with the require function of Sencha Touch, which worked perfectly for me.
Thanks!