Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Mastering ExtJS - Second Edition

You're reading from   Mastering ExtJS - Second Edition Learn how to develop advanced and efficient Internet applications with Ext JS

Arrow left icon
Product type Paperback
Published in Feb 2015
Publisher
ISBN-13 9781784390457
Length 400 pages
Edition 2nd Edition
Languages
Tools
Arrow right icon
Author (1):
Arrow left icon
Loiane Avancini Loiane Avancini
Author Profile Icon Loiane Avancini
Loiane Avancini
Arrow right icon
View More author details
Toc

Table of Contents (13) Chapters Close

Preface 1. Sencha Ext JS Overview FREE CHAPTER 2. Getting Started 3. The Login Page 4. The Logout and Multilingual Capabilities 5. Advanced Dynamic Menu 6. User Management 7. Static Data Management 8. Content Management 9. Adding Extra Capabilities 10. Routing, Touch Support, and Debugging 11. Preparing for Production and Themes Index

Enhancing the Login screen

Our Login screen is done. However, there are some enhancements we can apply to it to make it even better and also offer a better experience to the user.

The following list details the enhancements that we are going to apply in our Login screen:

  • Apply a loading mask while authenticating
  • Submit the form when the user presses Enter
  • Displaying a Caps Lock warning message

Applying a loading mask on the form while authenticating

Sometimes, when the user clicks on the Submit button, there can be some delay while waiting for the server to send back the response. Some users will be patient, while some others will not. The ones that are not very patient will be able to click on the Submit button again, and this means making another request to the server. We can avoid this behavior by applying a loading mask to the Login window while awaiting the response.

First, we need to add the following code right before the form.submit call (inside the doLogin method):

this.getView().mask...
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime