Hi,
I am new to js and trying simple examples to get get the hang of it. In this example i'm trying to display a simple grid panel by applying the mvc model. I do not get any error msgs but nothing is displayed on the page and I cannot figure out what I am doing wrong. Any help is appreciated! Thanks in advance!
Here is my code:
grid.html
<html>
<head>
<title>Example1_datagrid</title>
<link rel="stylesheet" type="text/css" href="extjs/resources/css/ext-all.css">
<script type="text/javascript" src="extjs/bootstrap.js"></script>
<script type="text/javascript" src="myapp.js"></script>
</head>
<body></body>
</html>
myapp.js
Ext.application({
name: "MyApp",
appFolder: "app",
controllers: ["MyController"],
// Not aware of scoping
init: function() {
console.log("MyApp >> init() >> started");
console.log("MyApp >> init() >> completed");
},
// Aware of current scoping, "this" is a global namespace
launch: function() {
try {
// "this" is application object and a pointer to global variables/namespace
console.log("MyApp >> launch() >> started");
console.log("MyApp >> launch() >> completed");