Page: 1 Creating AJAX-Powered Forms with the Dojo Toolkit Presented By: James Harmon Object Training Group, Inc.

Slides:



Advertisements
Similar presentations
Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 16 Introduction to Ajax.
Advertisements

Working with Forms. how are forms manipulated? the document object contains an array of forms objects, one for each form, in document order –forms[] any.
Samsung Smart TV is a web-based application running on an application engine installed on digital TVs connected to the Internet.
WEB DESIGN TABLES, PAGE LAYOUT AND FORMS. Page Layout Page Layout is an important part of web design Why do you think your page layout is important?
Tutorial 6 Creating a Web Form
Microsoft Expression Web-Illustrated Unit L: Using Code Tools.
Web Page Behavior IS 373—Web Standards Todd Will.
Does Ajax suck? CS575 Spring 2007 Chanwit Suebsureekul.
Inline, Internal, and External FIle
Setting up in Outlook Express. Select “Tools” from the toolbar menu.
Web 2.0 with AJAX Students : LASC Ioana KELEMEN Csilla POP Dan Adrian CIOBANU Dumitru Daniel Project leader : Ahmed RHIAT.
Web Development & Design Foundations with XHTML Chapter 9 Key Concepts.
Form Handling, Validation and Functions. Form Handling Forms are a graphical user interfaces (GUIs) that enables the interaction between users and servers.
Lesson 8 Creating Forms with JavaScript
XP Tutorial 14 New Perspectives on HTML, XHTML, and DHTML, Comprehensive 1 Working with Forms and Regular Expressions Validating a Web Form with JavaScript.
JavaScript Form Validation
JavaScript & jQuery the missing manual Chapter 11
Database-Driven Web Sites, Second Edition1 Chapter 8 Processing ASP.NET Web Forms and Working With Server Controls.
Chapter 3 Using Validation Controls. What is a Validation Control? A control that validates the value in another control Renders as an HTML tag with an.
1 Forms A form is the usual way that information is gotten from a browser to a server –HTML has tags to create a collection of objects that implement this.
Tutorial 14 Working with Forms and Regular Expressions.
Insert Presentation Title Heremm.dd.yy, City, ST SQL Reporting Services – Building the Report Kevin Ford Services Consaultant Accela, Inc.
Day 17. » Client side and Server side » Since PHP is Server side and can output anything we want, we can output to JS. » With JS libraries, we can create.
 2008 Pearson Education, Inc. All rights reserved Ajax-Enabled Rich Internet Applications.
© Cheltenham Computer Training 2001 Macromedia Dreamweaver 4 - Slide No 1 Macromedia Dreamweaver 4 Advanced Level Course.
Overview of Previous Lesson(s) Over View  ASP.NET Pages  Modular in nature and divided into the core sections  Page directives  Code Section  Page.
SqlReports Dean Dahlvang PSUG-MO March About Dean Dean Dahlvang Director of Administrative Technology for the Proctor.
Microsoft Internet Security and Acceleration (ISA) Server 2004 is an advanced packet checking and application-layer firewall, virtual private network.
Web Application and Development Digital Media Department Unit Credit Value : 4 Essential Learning time : 120 hours Digital Media.
C# Tutorial -1 ASP.NET Web Application with Visual Studio 2005.
Microsoft Visual Basic 2005 CHAPTER 7 Creating Web Applications.
System Initialization 1)User starts application. 2)Client loads settings. 3)Client loads contact address book. 4)Client displays contact list. 5)Client.
 Whether using paper forms or forms on the web, forms are used for gathering information. User enter information into designated areas, or fields. Forms.
Using Wikis in Education Caroline County Educational Technology Workshop August 1, kispaces.com/
HTML Form Widgets. Review: HTML Forms HTML forms are used to create web pages that accept user input Forms allow the user to communicate information back.
HTML Forms. Slide 2 Forms (Introduction) The purpose of input forms Organizing forms with a and Using different element types to get user input A brief.
Mozilla. Why mozilla Main Components Browser features Loads very quickly Personal toolbar with your locations Can turn off pop-up windows good control.
Web Technologies Lecture 4 XML and XHTML. XML Extensible Markup Language Set of rules for encoding a document in a format readable – By humans, and –
Web Technologies Lecture 3 Web forms. HTML5 forms A component of a webpage that has form controls – Text fields – Buttons – Checkboxes – Range controls.
HTML FORMS The TEXT Object Presented By: Ankit Gupta.
HTML Forms.
IT533 Lectures ASP.NET AJAX.
INTRODUCTION TO HTML5 New HTML5 User Interface and Attributes.
AJAX. Overview of Ajax Ajax is not an API or a programming language Ajax aims to provide more responsive web applications In normal request/response HTTP.
ASSIGNMENT POINTS DUE DATE: Monday NOV 30 JAVASCRIPT, INPUT VALIDATION, REGEX See 2 nd slide for Form See 3 rd next slide for the required features.
SERVER web page repository WEB PAGE instructions stores information and instructions BROWSER retrieves web page and follows instructions Server Web Server.
Form Validation. Create a form for the user to enter the data seen blow.
Document Object Model Nasrullah. DOM When a page is loaded,browser creates a Document Object Model of the Page.
XP Tutorial 7 New Perspectives on JavaScript, Comprehensive 1 Working with Forms and Regular Expressions Validating a Web Form with JavaScript.
Text INTRODUCTION TO ASP.NET. InterComm Campaign Guidelines CONFIDENTIAL Simply Server side language Simplified page development model Modular, well-factored,
05 | Integrating JavaScript and MVC 4 Jon Galloway | Tech Evangelist Christopher Harrison | Head Geek.
Craig Pelkie Copyright © 2015, Craig Pelkie ALL RIGHTS RESERVED Use RPG to Mobilize your IBM i.
1 CSC160 Chapter 1: Introduction to JavaScript Chapter 2: Placing JavaScript in an HTML File.
CIS 228 The Internet 12/6/11 Forms and Validation.
Tutorial 6 Creating a Web Form
1 Using jQuery JavaScript & jQuery the missing manual (Second Edition)
WaveMaker Visual AJAX Studio 4.0 Training Styling your application.
Introduction to JavaScript MIS 3502, Fall 2016 Jeremy Shafer Department of MIS Fox School of Business Temple University 9/29/2016.
>> Form Data Validation in JavaScript
JavaScript, Sixth Edition
Weebly Elements, Continued
© 2016, Mike Murach & Associates, Inc.
Web Programming– UFCFB Lecture 17
Working with Forms and Regular Expressions
Objectives Explore web forms Work with form servers
Title of Your Event Event Date Event Time
Title of Your Event Event Date Event Time
JavaScript Form Validation
Teaching slides Chapter 6.
Web Design and Development
Presentation transcript:

Page: 1 Creating AJAX-Powered Forms with the Dojo Toolkit Presented By: James Harmon Object Training Group, Inc.

Page: 2 Goal Increase the usability of your existing web forms by using features of the dojo toolkit Changes should be easy and quick to implement –Improve perceived performance –Increase functionality of existing widgets –Improve data validation

Page: 3 Review Sample Application No client side validation –No JavaScript validation provided at all Server side validation –Part of request / response cycle Widgets –Limitations

Page: 4 Approach Add client side validation Use server side validation on each widget instead of entire form Use specialized dojo widgets to improve functionality

Page: 5 Steps Install dojo Improve client side validation Use server side validation Use specialized widgets Use the dojo form widget

Page: 6 Install dojo Download from dojotoolkit.org Use AOL CDN (content distribution network)

Page: 7 Client Side Validation Mark widget as using dojo client side validation Specify the transformation and validation features

Page: 8 First Name Transformation features –First character upper case Validation Requirements –Required field

Page: 9 Review before/after DOM Review DOM view before using dojo Review DOM view after using dojo Discuss new event model for DOM element

Page: 10 Validation Error Messages Configurable properties DOM view of error message tags CSS style properties

Page: 11 Common Box Types Box TypeDescription ValidationTextBoxGeneric validations IntegerTextBoxInteger Fields CurrencyTextBoxVarious monetary values Date/TimeTextBoxDate and Time Fields TextBoxFor entering addresses RegexpTextBoxUse regular expressions for validation InlineEditBoxUser can edit field by clicking on it

Page: 12 Transformations Attributes on field type boxes which change the values of the field –Uppercase –Lowercase –trim –Upper case first character –Digit (remove all non digit characters)

Page: 13 Validations Attributes on field type boxes which cause validations to be applied to field Error message must be provided Style of error messages can be over- ridden –Required –maxLength –Size

Page: 14 Server Side Validation Determine fields which can be validated on server side using Ajax Username (or ) already used The server can do more than provide validation –Any data or message can be sent back to client

Page: 15 User Name Passing data to the server –Don’t wait until the entire form is processed before letting using know if they’ve selected a good user name Handling the response from the server –Not only invalid data message, but possible suggestions as well

Page: 16 City, State, ZipCode State data comes from the server –Could be preloaded –Watch the state selection as user types IL is Illinois not Idaho City and Zip data comes from server based on selected state –Too much data to preload into the page

Page: 17 Specialized dojo Widgets Date Picker Rich Text Editor Others

Page: 18 Date Picker Add the widget to the page Populate the widget with data Get data from the widget

Page: 19 Rich Text Editor Add the widget to the page Populate the widget with data Get data from the widget

Page: 20 Dojo Form Widget Creating a dojo Form –Add widget to the page –Populate the widget with data Serializing Data Passing Data to Server Graceful Fallback

Page: 21 Other Widgets – Tab Container

Page: 22 Other Widgets – Sortable Table

Page: 23 Where To Go From Here Download slides and code from –