A Simplified Guide by Nithyavidhyaarthi
A Simplified Guide by Nithyavidhyaarthi
Net
A simplified guide
By NithyaVidhyaarthi
What is ExtJS
• ExtJS is a javascript framework (client-side)
that enables developers to develop Rich
Internet Application (RIA) (static websites or
data-driven applications) with a plethora of
options.
How do we begin?
• Download the latest copy of ExtJS from
www.extjs.com/download
• Unzip using any file compression utility
(Winzip / WinRAR).
• It is strongly recommended that you create a
virtual directory for the unzipped folder (since
certain examples work only if accessed via
website / virtual directory).
Walking the first step…
• Launch the Visual Studio IDE
and create a new website (Do
not worry about the
framework version).
• Add the ExtJS files into a
folder named say “ExtJS”
within the newly created
website.
Important
• Start editing the default.aspx & remove form
elements with “runat = server” attribute.
• Make sure that no form elements within body
has “runat = server” attribute.
• Add a javascript file. Name it “default.js” and
place it within a folder named “Scripts” within
the root directory.
Files to be linked
• Add links to all the highlighted
files. These files are very much
important to set-up the ground
work for our application.
• Next add your custom files.
• Example (in default.aspx):
<link href="ExtJS/resources/css/ext-all.css" rel="stylesheet"
type="text/css" />
<script type="text/javascript" language="javascript"
src="ExtJS/adapter/ext/ext-base.js"></script>
<script type="text/javascript" language="javascript"
src="ExtJS/ext-all.js"></script>
<script type="text/javascript" language="javascript"
src=“Scripts/default.js"></script>
Finishing up links…
Ext.onReady(function(){
Ext.MessageBox.show({
title:’My Message’
, msg:’My first Hello world using Ext…’
, buttons: Ext.MessageBox.OK
, icon: Ext.MessageBox.INFO
});
});
Run towards Hope…
• Verify again, whether you had added the links
to the java-script files and CSS files correctly.
arunprasadvidhyaarthi – skype
Arunprasadvidhyaarthi – slideshare.com
Arun85prasad – twitter
Arunprasad – scribd.com