Client-Side Validation with Javascript

Slides:



Advertisements
Similar presentations
EMu New Features 2013 Bernard Marshall KE Software.
Advertisements

Web Programming 1 Darby Chang Web Programming. Cookie 2 Web Programming.
Essentials for Design JavaScript Level One Michael Brooks
Lecture 6/2/12. Forms and PHP The PHP $_GET and $_POST variables are used to retrieve information from forms, like user input When dealing with HTML forms.
Prime’ Senior Project. Presentation Outline What is Our Project? Problem Definition What does our system do? How does the system work? Implementation.
DT228/3 Web Development WWW and Client server model.
Toolbox Mirror -Overview Effective Distributed Learning.
1 Owais Mohammad Haq Department of Computer Science Eastern Michigan University April, 2005 Java Script.
15 Chapter 15 Web Database Development Database Systems: Design, Implementation, and Management, Fifth Edition, Rob and Coronel.
Lecture 3B: Client-Side Scripting IT 202—Internet Applications Based on notes developed by Morgan Benton.
Multiple Tiers in Action
Performed by:Gidi Getter Svetlana Klinovsky Supervised by:Viktor Kulikov 08/03/2009.
Firefox 2 Feature Proposal: Remote User Profiles TeamOne August 3, 2007 TeamOne August 3, 2007.
Maintaining and Updating Windows Server 2008
COMPUTER TERMS PART 1. COOKIE A cookie is a small amount of data generated by a website and saved by your web browser. Its purpose is to remember information.
Server- Side technologies Client-side vs. Server-side scripts PHP basic ASP.NET basic ColdFusion.
JavaScript and The Document Object Model MMIS 656 Web Design Technologies Acknowledgements: 1.Notes from David Shrader, NSU GSCIS 2.Some material adapted.
JavaScript Teppo Räisänen LIIKE/OAMK HTML, CSS, JavaScript HTML defines the structure CSS defines the layout JavaScript is used for scripting It.
Client-Side Validation with Javascript by Daniel Yee.
Dynamic Web Pages (Flash, JavaScript)
HTML Forms and Scripts. Session overview What are forms? Static vs dynamic Client-side scripts –JavaScript.
Lecture 7 Interaction. Topics Implementing data flows An internet solution Transactions in MySQL 4-tier systems – business rule/presentation separation.
Programming the Web Web = Computer Network + Hypertext.
JavaScript Tabriz university Its September 1995.
An Introduction to JavaScript Summarized from Chapter 6 of “Web Programming: Building Internet Applications”, 3 rd Edition.
NMD202 Web Scripting Week3. What we will cover today Includes Exercises PHP Forms Exercises Server side validation Exercises.
Kiew-Hong Chua a.k.a Francis Computer Network Presentation 12/5/00.
Database Systems: Design, Implementation, and Management Eighth Edition Chapter 14 Database Connectivity and Web Technologies.
Case Study Dynamic Website - Three Tier Architecture
Overview of Form and Javascript fundamentals. Brief matching exercise 1. This is the software that allows a user to access and view HTML documents 2.
RUBRIC IP1 Ruben Botero Web Design III. The different approaches to accessing data in a database through client-side scripting languages. – On the client.
ASP (Active Server Pages) by Bülent & Resul. Presentation Outline Introduction What is an ASP file? How does ASP work? What can ASP do? Differences Between.
Client-side & Server-side Scripting ©Richard L. Goldman August 5, 2003 Requires PowerPoint 2002 or later for full functionality.
Ajax for Dynamic Web Development Gregory McChesney.
WEB SERVER SOFTWARE FEATURE SETS
Javascript JavaScript is what is called a client-side scripting language:  a programming language that runs inside an Internet browser (a browser is also.
ASP. ASP is a powerful tool for making dynamic and interactive Web pages An ASP file can contain text, HTML tags and scripts. Scripts in an ASP file are.
 Web pages originally static  Page is delivered exactly as stored on server  Same information displayed for all users, from all contexts  Dynamic.
ASP-2-1 SERVER AND CLIENT SIDE SCRITPING Colorado Technical University IT420 Tim Peterson.
Database Systems: Design, Implementation, and Management Eighth Edition Chapter 14 Database Connectivity and Web Technologies.
Event Handling & AJAX IT210 Web Systems. Question How do we enable users to dynamically interact with a website? Answer: Use mouse and keyboard to trigger.
JavaScript 101 Introduction to Programming. Topics What is programming? The common elements found in most programming languages Introduction to JavaScript.
JavaScript Dynamic Active Web Pages Client Side Scripting.
Display Page (HTML/CSS)
Introduction to ASP.NET development. Background ASP released in 1996 ASP supported for a minimum 10 years from Windows 8 release ASP.Net 1.0 released.
Maintaining and Updating Windows Server 2008 Lesson 8.
Basics Components of Web Design & Development Basics, Components, Design and Development.
JavaScript Invented 1995 Steve, Tony & Sharon. A Scripting Language (A scripting language is a lightweight programming language that supports the writing.
Client-side processing 26 Client-side processing 26.
A Presentation Presentation On JSP On JSP & Online Shopping Cart Online Shopping Cart.
Presented by Deepak Varghese Reg No: Introduction Application S/W for server load balancing Many client requests make server congestion Distribute.
PHP Assignment Help BookMyEssay. What is PHP PHP is a scripting language generally used on web servers. It is an open source language and embedded code.
WEB TESTING
JavaScripts.
>> Introduction to Web Applications
Dynamic Web Pages (Flash, JavaScript)
Angularjs Interview Questions and Answers By Hope Tutors.
Chapter 7 - JavaScript: Introduction to Scripting
JavaScript Introduction
JavaScript: Introduction to Scripting
Dynamic Web Pages Jin Wu INF 385E Information Architecture
Objective Understand web-based digital media production methods, software, and hardware. Course Weight : 10%
JAVASCRIPT Pam Kahl | COM 585 | Spring 2010.
Database Connectivity and Web Development
[Robert W. Sebesta, “Programming the World Wide Web
Chapter 7 - JavaScript: Introduction to Scripting
Chapter 7 - JavaScript: Introduction to Scripting
Introduction to JavaScript
Information Retrieval and Web Design
Chapter 7 - JavaScript: Introduction to Scripting
Presentation transcript:

Client-Side Validation with Javascript by Daniel Yee

Client-Side Scripting Language Javascript European Computer Manufacturers Association (ECMA) ECMA-262 Third edition Updated Last December 1999

Javascript Not a full fledged programming language Cannot connect to databases Limited interactions to system resources Cannot do tasks most web databases require

Common Uses of Javascript Validation of <form> data Simple interaction with <form> data Adding dynamic elements to web page

Benefits of using Javascript Faster response then using server-side validation Reduction in web-server load Reduction in network traffic Can be saved as a file - file.js and reused by typing <script type= text/javascript src=“file.js”>

Warning!!!!!!!!!!!!! Never rely on client-side validation as the only method of ensuring requirements and constraints Javascript can be bypassed by the user through design, error, or configuration

Validating <form> Data Simple example for validating a <form> with JavaScript Check for whitespace

Batch Error Reporting Validation for multiple fields Example

Interactive Validation Password <form> validation Example

Dynamic Elements Some implementations not associated with web database applications MouseOver Prefilled calculations

MouseOver Creating a mouseOver Event Example

Prefilled Calculations Shopping cart updating Example

Conclusion Javascript is a client-side scripting language Can be used for validating forms and enhancing user interactions Benefits include improved speed, reduced load, and added features

REMEMBER!!!!! NEVER USE AS THE ONLY METHOD TO ENSURE REQUIREMENTS, SECURITY, AND CONSTRAINTS WHY? BECAUSE IT CAN BE BYPASSED BY THE USER

The End