Extjs English - Step by Step Phonebook Application
Extjs English - Step by Step Phonebook Application
Explore / / / / + + <iframe height="0" src="//www.googletagmanager.com/ns.html?id=GTM-ZWF6" style="display:none;visibility:hidden" width="0"></iframe> ""> ""> : Download 0 23 Readcast scribd. scribd. scribd. scribd. scribd. scribd. scribd. scribd. scribd. scribd. scribd. scribd. scribd. scribd. scribd. scribd. scribd. scribd. scribd.
ExtJS Tutorial
ExtJS is a cross-browser JavaScript library, that helps you creating web2.0
applications, using different techniques like AJAX , DHTML and DOM scripting. ExtJS
includes various GUI (Graphic User Interface) controls or so called w idgets , that can be used in web applications, like Text Field
, Text Area , Date Field , List Box , Combo Box , Radio Box
, Tab Panel
, Toolbar s, Flash charts , andmaybe the most popular, Grid control. Many of the controls can communicate
directly to a server side using AJAX ( A synchronous JavaScript and XML ).I will show you how to use ExtJS library in a simple example of a
Phonebook application, step by step.Before we start, you need to make sure that you have the latest version of ExtJS 3
library. Currently, the latest version is ExtJS 4 but this tutorial is all about ExtJS 3 version. So, in short, you must have
ExtJS 3 library. You can download it from the official web sitehttp://www.sen cha.com/products/ extjs3/download/. For a server side scripting I am going to use
PHP . Of course you can use a different server side scripting language if you want.I will use Netbeans as my IDE
(Integrated Development Environment). You can use any text editor you want, like Notepad++; Idecided to use Netbeans
because it has a nice code formatting. On the server side I will use WAMP
PHP and MySQL . As you can see, I am using MySQL database as a storage for our data. In this tutorial I will not
talk about server side scriptingtoo much, because I assume that you have the basic knowledge of a PHP or some other server side scripting language.
""> "">
Step 1
Phonebook
Table Name: Contacts Here is the Contacts Table structure: Column Name Column Type Additionally ContactId
""> "">
Step 2
all.css
js/ext/ext-all.js
<!-- include extbase.js --> <script type= "text/javascript" src= "js/ext/adapter/ex t/ext-base.js" ></script>
<!-- include extall.js --> <script type= "text/javascript" src= "js/ext/extall.js" ></script> [/code]
So, do not forget to include these files into your HTML page where you want to use ExtJS library.
(especially if your internet connection is slow) and I want toshow the loading progress to the user (client)
of how you can trackloading core ExtJS files.After that I am loading my custom .js files MainToolbar.js
Grid.js ContactWindow.js Application.jsAgain this is not the ExtJS logic, and you do not have to do stuff like this, this
Index.html
[code]
<html> <head> <title> Phonebook - 1.0 Alpha
</title> </head> <body> <div id= "loading-mask" style= "" > </div><div id= "loading" >
<center> <div> <img src= "images/ajaxloader.gif" width= "32" height= "32" style= "margin-right: 8px;float: left;
vertical-align: top;" /> Phonebook - 1.0 <a href= "http://www.vladic asavic.iz.rs" > www.vladicasavic. iz.rs </a><br />
<!-- include extall.css --> <link rel= "stylesheet" href= "js/ext/resources/ css/ext-all.css" /> <!-- my custom loader --> <script type= "text/javascript"
>document.getElem entById ( 'loading-msg' ). innerHTML = 'Loading API' ; </script> <!-- include extbase.js --> <script type=
<!-- my custom loader --> <script type= "text/javascript" >document.getElem entById ( 'loading-msg'
></script> <!-- my custom loader --> <script type= "text/javascript" >document.getElem entById ( 'loading-msg' ). innerHTML =
'Loading Panel...' ; </script> <!-- my custom .js files --> <script type= "text/javascript" src= "js/toolbars/MainT oolbar.js" ></script>
<script type= "text/javascript" src= "js/grids/Grid.js" ></script> <script type= "text/javascript" src= "js/windows/Contac tWindow.js" ></script> <script type= "text/javascript"
src= "js/Application.js " ></script> <!-- my custom loader --> <script type= "text/javascript" >document.getElem entById ( 'loading-msg' ).
[/code]
Main Layout
Lets first
create a basic application layout.Phonebook application will be a window that contains a toolbar menu with options that implements
CRUD (
)operations. It will also has central region where we will put a Grid
control for displaying our Contacts.First, I will create just a window frame. Later I will add a toolbar menu with described options and a Grid control.
Application.js
[code] Ext . namespace (
} catch ( ex ) { }
title : 'Phonebook 1.0 Programmed in ExtJS by Vladica Savic' , width : 500 , height
: ... 0000 00 p.
: /
: : 11/28/2011 : Attribution Non-commercial : . Free download as PDF File (.pdf), Word Doc (.doc / .docx), Text File (.txt) or read online for free.
.DOCX
.TXT
63 p.
ExtJS 4 First Look - book - sample chapter: Upgraded Charts Loiane Groner 7649 Reads
23 p. 74070949 Extjs English Step by Step Phonebook Application dygorgonites 455 Reads
49 p. Designing a User login panel with ExtJS for beginners Arun Prasad 2982 Reads
Featured
370 p. Hello Wolves, I'm Home Random House Publishing Group $25.00
20 p.
Post comment
Scribd !
AdChoices
/ API
Copyright 2013 Scribd Inc. : <div style="display:none;"> <img src="//pixel.quantserve.com/pixel/p-13DPpb-yg8ofc.gif" border="0" height="1" width="1" alt="Quantcast"> </div>