Book Image

Learning DHTMLX Suite UI

By : Eli Geske
Book Image

Learning DHTMLX Suite UI

By: Eli Geske

Overview of this book

JavaScript applications provide an excellent user experience for small to large scale enterprise applications. The amazing growth of JavaScript has opened the door for many great libraries such as DHTMLX. "Learning DHTMLX Suite UI" will teach you how to use these libraries effectively so you can make presentations that will take your employer's/ client's breath away! "Learning DHTMLX Suite UI" is a step-by-step guide that will teach you the basics of DHTMLX library components and how to apply them in a real-world scenario. This book will start with the installation of DHTMLX before moving on to explore the features of DHTMLX and helping you to create your first user management application. "Learning DHTMLX Suite UI" will guide you through the installation of DHTMLX as a single-page application. As you progress from one chapter to the next, you will gradually build a simple user management application. You will also learn how to create forums with validation and how to use grids to add and edit users. The book will also suggest the best practices for using toolbars and refreshing data. With "Learning DHTMLX Suite UI Guide", you will be inspired to come up with your own great ideas for your future application development projects.
Table of Contents (17 chapters)
Learning DHTMLX Suite UI
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Preface

The DHTMLX components library is fast, fun, and exciting! If you are looking to build a user friendly, highly interactive web application, then DHTMLX is one of the best choices in the market today.

DHTMLX provides great individual components from grids, charts, forms, layouts, toolbars, and more that can all be used together or individually. Each of the components has great online documentation with many samples.

When starting to use new tools for programming, there is always a learning curve on how to use the documentation and where to start. This book aims to speed up your knowledge and shorten that learning curve exponentially! Welcome to the wonderful world of client-side programming!

What this book covers

Chapter 1, User Management Web App, provides a more in-depth look into why we chose DHTMLX over other libraries and explains exactly what we will be building.

Chapter 2, Download, Setup, and Test, covers how to get going with the DHTMLX library and where to put the downloaded files. It also touches on Chrome's developer tools.

Chapter 3, Data Structures, Storage, and Callbacks, jumps into the application code and creating our storage and callback methods. It also gives a crash course in HTML5 and local storage.

Chapter 4, The DHTMLX Layout, shows how to create a layout and its different initializations and then attach one to the application.

Chapter 5, The DHTMLX Toolbar, is all about the toolbar and how to create, disable, and listen to when they are clicked.

Chapter 6, The DHTMLX Grid, goes in-depth into the grid component and its methods and events, and then coding a grid to the application.

Chapter 7, The DHTMLX Window, goes in-depth into creating a pop-up window with the window component.

Chapter 8, The DHTMLX Form and Calendar, covers the form component and its different validation types and items, including a calendar or date picker.

Chapter 9, The DHTMLX Chart, covers the chart component showing different chart types, adding multiple data series, and manipulating the look and feel.

Chapter 10, The Finish Line, goes over the entire application, and discusses some common troubleshooting and how to enhance the application further on your own.

What you need for this book

HTML, CSS, and JavaScript knowledge is assumed, as this book will be using these three fields. The goal of this book is to show us how DHMTLX's components work. Therefore, we will not be focusing on structure of code or advanced JavaScript objects and in-depth explanations.

JSON and HTML5 will be used for data storage locally, as to not involve the server-side database. If you are not an expert on any of these, don't fret. Throughout the book, if you have any issues or don't understand something, go do a little studying and come back. This will not be hard; I promise.

A web server is needed. Unlike normal HTML files with inline JavaScript, DHTMLX should be run on a web server. There are many web server options out there for you to install. If using Mac, there is a built-in web server, or, if using Windows, you can use options such as WAMP. These are both extremely easy to set up. It is not in the scope of this book to go into installation of these.

A code editor and web browser with development tools is needed. You will need some type of code editor and a web browser with developer tools to debug our JavaScript. Since you may either be using a Mac or Windows, let's use Notepad++ as our editor and Google Chrome for our web browser and tools. This will make it easier to follow. But if you are set in your tools already and comfortable with them, please use those instead.

Who this book is for

This book targets anyone looking to build good looking web apps quickly, easily, and cleanly, with minimal cross-browser compatibility maintenance. The code you will write will be simple and not too advanced. If you are an expert backend developer, you will find better and more efficient ways to implement the application. For those of you who are not advanced developers, the code is clean and efficient enough to run this application without any issues at all in a production environment.

Conventions

In this book, you will find a number of styles of text that distinguish between different kinds of information. Here are some examples of these styles, and an explanation of their meaning.

Code words in text are shown as follows: "The getUser method retrieves the user object in a string from our localStorage and parses the JSON string back into an object."

A block of code is set as follows:

getUser: function(id){
  var user = localStorage.getItem(id));
  return (user)?JSON.parse(user):false;
},

New terms and important words are shown in bold. Words that you see on the screen, in menus or dialog boxes for example, appear in the text like this: "After it closes, re-open with the toolbar's add button."

Note

Warnings or important notes appear in a box like this.

Tip

Tips and tricks appear like this.

Reader feedback

Feedback from our readers is always welcome. Let us know what you think about this book—what you liked or may have disliked. Reader feedback is important for us to develop titles that you really get the most out of.

To send us general feedback, simply send an e-mail to , and mention the book title through the subject of your message.

If there is a topic that you have expertise in and you are interested in either writing or contributing to a book, see our author guide at www.packtpub.com/authors.

Customer support

Now that you are the proud owner of a Packt book, we have a number of things to help you to get the most from your purchase.

Downloading the example code

You can download the example code files for all Packt books you have purchased from your account at http://www.packtpub.com. If you purchased this book elsewhere, you can visit http://www.packtpub.com/support and register to have the files e-mailed directly to you.

Errata

Although we have taken every care to ensure the accuracy of our content, mistakes do happen. If you find a mistake in one of our books—maybe a mistake in the text or the code—we would be grateful if you would report this to us. By doing so, you can save other readers from frustration and help us improve subsequent versions of this book. If you find any errata, please report them by visiting http://www.packtpub.com/support, selecting your book, clicking on the errata submission form link, and entering the details of your errata. Once your errata are verified, your submission will be accepted and the errata will be uploaded to our website, or added to any list of existing errata, under the Errata section of that title.

Piracy

Piracy of copyrighted material on the Internet is an ongoing problem across all media. At Packt, we take the protection of our copyright and licenses very seriously. If you come across any illegal copies of our works, in any form, on the Internet, please provide us with the location address or website name immediately so that we can pursue a remedy.

Please contact us at with a link to the suspected pirated material.

We appreciate your help in protecting our authors and our ability to bring you valuable content.

Questions

You can contact us at if you are having a problem with any aspect of the book, and we will do our best to address it.