ExtJS 2 "Hello World" Application

Posted By Vitaliy | April 30, 2017 | ExtJS 2.0.0
0 519
This is minimal html page code to run ExtJS version 2.
Note: that it's not recommended to add any DOCTYPE for this version of library.

<html>
	<head>
		<link href="/ext/2.0.0/resources/css/ext-all.css" rel="stylesheet" type="text/css" />
		<script src="/ext/2.0.0/adapter/ext/ext-base.js"></script>
		<script src="/ext/2.0.0/ext-all.js"></script>
	</head>
	<body>
		<script>
			Ext.onReady(function() {
				Ext.Msg.alert('Welcome', 'Hello, World!');
			});
		</script>
	</body>
</html>

Js Code

Ext.onReady(function() {
    Ext.Msg.alert('Welcome', 'Hello, World!');
});