CSS Class 6 Make image into a button Create button with button element Group related form elements Control tab order Process form data.

Slides:



Advertisements
Similar presentations
In this lecture, you will learn: ❑ How to link between pages of your site ❑ How to link to other sites ❑ How to structure the folders on your web site.
Advertisements

Tutorial 6 Creating a Web Form
Languages for Dynamic Web Documents
Server-Side vs. Client-Side Scripting Languages
Tutorial 6 Working with Web Forms
Copyright © 2006 by The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill Technology Education Copyright © 2006 by The McGraw-Hill Companies,
Introduction to Web Application Architectures Web Application Architectures 18 th March 2005 Bogdan L. Vrusias
Macromedia Dreamweaver 4 Advanced Level Course. Add Rollovers Rollovers or mouseovers are possibly the most popular effects used in designing Web pages.
Website Development with PHP and MySQL Introduction.
Tutorial 6 Working with Web Forms. XP Objectives Explore how Web forms interact with Web servers Create form elements Create field sets and legends Create.
Creating Web Page Forms
2440: 141 Web Site Administration Web Server-Side Programming Professor: Enoch E. Damson.
Chapter 19 – Macromedia Dreamweaver MX 2004
ECA 228 Internet/Intranet Design I Intro to the Web.
Web Programming Language Dr. Ken Cosh Week 1 (Introduction)
WHAT IS PHP PHP is an HTML-embedded scripting language primarily used for dynamic Web applications.
Web Development & Design Foundations with XHTML Chapter 9 Key Concepts.
Web Design Basic Concepts.
DAT602 Database Application Development Lecture 15 Java Server Pages Part 1.
1 Web Developer & Design Foundations with XHTML Chapter 6 Key Concepts.
INTRODUCTION TO WEB DATABASE PROGRAMMING
What is Web Design?  Web design is the creation of a Web page using hypertext or hypermedia to be viewed on the World Wide Web.
Server- Side technologies Client-side vs. Server-side scripts PHP basic ASP.NET basic ColdFusion.
1 CS 3870/CS 5870 Static and Dynamic Web Pages ASP.NET and IIS.
XP Tutorial 6New Perspectives on HTML and XHTML, Comprehensive 1 Creating Web Page Forms Designing a Product Registration Form Tutorial 6.
Additional Topics. Tutorial #9 Review – Forms Forms Legend and fieldset Fields Text Password Radio buttons, check box, text area, select lists Buttons.
Architecture Of ASP.NET. What is ASP?  Server-side scripting technology.  Files containing HTML and scripting code.  Access via HTTP requests.  Scripting.
Database-Driven Web Sites, Second Edition1 Chapter 8 Processing ASP.NET Web Forms and Working With Server Controls.
Languages in WEB Presented by: Jenisha Kshatriya BCM SS09.
1 CS 3870/CS 5870 Static and Dynamic Web Pages ASP.NET and IIS.
Project Four Forms Discuss form processing Describe the difference between client-side and server-side form processing Add a horizontal rule to a Web page.
Basics of Web Databases With the advent of Web database technology, Web pages are no longer static, but dynamic with connection to a back-end database.
XHTML Introductory1 Forms Chapter 7. XHTML Introductory2 Objectives In this chapter, you will: Study elements Learn about input fields Use the element.
INTRODUCTION TO FRONTPAGE. TOPICS TO BE DISCUSSED……….  Introduction Introduction  Features Features  Starting Front Page Starting Front Page  Components.
Tutorial 10 Adding Spry Elements and Database Functionality Dreamweaver CS3 Tutorial 101.
Tutorial 1 Getting Started with Adobe Dreamweaver CS3
CNIT 133 Interactive Web Pags – JavaScript and AJAX JavaScript Environment.
1 Macromedia Dreamweaver Outline Introduction Macromedia Dreamweaver Text Styles Images and Links Symbols and Lines Tables Forms Scripting in Dreamweaver.
NASRULLAH KHAN.  Lecturer : Nasrullah   Website :
Tutorial 121 Creating a New Web Forms Page You will find that creating Web Forms is similar to creating traditional Windows applications in Visual Basic.
Session 1 SESSION 1 Working with Dreamweaver 8.0.
Tutorial 7 Creating Forms. Objectives Session 7.1 – Create an HTML form – Insert fields for text – Add labels for form elements – Create radio buttons.
Lesson13. JavaScript JavaScript is an interpreted language, designed to function within a web browser. It can also be used on the server.
Active Server Pages  In this chapter, you will learn:  How browsers and servers interacted on the Internet when the Internet first became popular 
1 © Netskills Quality Internet Training, University of Newcastle HTML Forms © Netskills, Quality Internet Training, University of Newcastle Netskills is.
1Computer Sciences Department Princess Nourah bint Abdulrahman University.
Introducing ASP.NET 2.0. Internet Technologies WWW Architecture Web Server Client Server Request Response Network HTTP TCP/IP PC/Mac/Unix + Browser (IE,
Tutorial 6 Working with Web Forms. XP Objectives Explore how Web forms interact with Web servers Create form elements Create field sets and legends Create.
Tutorial 6 Working with Web Forms. 2New Perspectives on HTML, XHTML, and XML, Comprehensive, 3rd Edition Objectives Explore how Web forms interact with.
ASP.NET in Definition: 1.ASP.NET is a web application framework developed and marketed by Microsoft to allow programmers to build dynamic web sites,
Web Development Process The Site Development Process Site Construction is one of the last steps.
By Tharith Sriv. To write a web page you use: HHTML (HyperText Markup Language), AASP (Active Server Page), PPHP (HyperText Preprocessor), JJavaScript,
WHAT IS SERVER SIDE SCRIPTING? Server-side scripting is a web server technology in which a user's request is verified by running a script directly on the.
Scripting Languages Client Side and Server Side. Examples of client side/server side Examples of client-side side include: JavaScript Jquery (uses a JavaScript.
Introduction and Principles Web Server Scripting.
4.01B Authoring Languages and Web Authoring Software 4.01 Examine webpage development and design.
NASRULLAH KHAN.  Lecturer : Nasrullah   Website :
Tutorial 6 Working with Web Forms. 2New Perspectives on HTML, XHTML, and XML, Comprehensive, 3rd Edition Objectives Explore how Web forms interact with.
 Before you continue you should have a basic understanding of the following:  HTML  CSS  JavaScript.
Copyright © 2006 by The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill Technology Education Chapter 13 A & B Programming Languages and the.
CSE3310: Web training A JumpStart for Project. Outline Introduction to Website development Web Development Languages How to build simple Pages in PHP.
Tutorial 6 Creating a Web Form
 Lecture  Website language: ASP.net  Book name Beginning ASP.NET 4 in C# and VB 2.
HTML III (Forms) Robin Burke ECT 270. Outline Where we are in this class Web applications HTML Forms Break Forms lab.
A S P. Outline  The introduction of ASP  Why we choose ASP  How ASP works  Basic syntax rule of ASP  ASP’S object model  Limitations of ASP  Summary.
XP Creating Web Pages with Microsoft Office
Tutorial 6 Working with Web Forms
Introduction and Principles
Developing Web-Based Applications
Web Application Development Using PHP
Presentation transcript:

CSS Class 6 Make image into a button Create button with button element Group related form elements Control tab order Process form data

Make Image into a Button Refresher: –File Upload Field which results in a “browse” button that cannot be changed --no control over size, placement, or text on the “browse” button If you would like us to review a file, please upload it:

Make Image into a Button By doing the following, the browser will place an image on the page in place of the normal gray button with text: set input element to have its type set as image

Make Image into a Button Looks like this:

Make Image into a Button Button should be sized in image editor but designer can use width and height to set size Image will submit form but to do anything else, needs JavaScript Oddity: (side of effect of using image type for input ) browser will automatically transmit the x and y coordinates of the spot on the image actually clicked

Make Image into a Button See links at blog for button sources ary/category/C7/ ary/category/C7/

Create a Button with Button Element Little-known technique Technique will allow you to make your buttons visually different from the other controls button –Takes a required type attribute set to either submit, reset, or button All other valid attributes of input element will apply

Create a Button button Advantage over input: button is a container element Set, therefore, as text: Place Order, Mark it up further with XHTML: Place Order

Group Related Form Elements fieldset Attractive visual display Inviting, not intimidating XHTML provides a set of elements that can group form controls into logical blocks fieldset element is used to group a collection of related fields

Group Related Form Elements fieldset legend When using fieldset, browser draws the border around elements Designer can set width, style, and color of border In addition, provide legend, which defines a caption for the fieldset element The legend will appear near the upper left corner of the fieldset, bisecting the border

Group Related Form Elements fieldset legend Can nest fieldsets Example: user data personal information site data

Control the Tab Order Tab through form fields instead of using mouse By default, tab order is same as order in which fields appear in the code Some people (disabled) navigate the page with tab

Control the Tab Order tabindex Our objective is to get the “tab” user to the most desirable part of the page Add tabindex attribute to field forms and anchors Value of attribute is an integer between 1 and 36,768 The lower the number, the earlier in the tab order it will appear Value shouldn’t be consecutive

Control the Tab Order tabindex If an anchor or form field is not given a tabindex attribute, it can be tabbed to after the user tabs to all the tab indexed elements Check boxes and radio buttons can be tabbed to once in a fieldset but after that, user must use

Process Form Data Scripts that Process the Form Summary: –User fills out form  –Presses “submit”  –Browser collects data  –Transmits data to page provided in action attribute  Now the server needs to process the form data

Approaches to Processing Form Data Adobe ColdFusion Microsoft Active Server Pages Microsoft ASP.NET PHP Hypertext Preprocessor Ruby on Rails Perl

Adobe ColdFusion First server scripting language developed USP is it is designed as a rapid development language Looks and acts like HTML Relies on tag-based markup language Many processes that require complex code in other languages are implied in CF

Adobe ColdFusion, cont. Integrated with other Adobe technologies: Can generate PDF documents dynamically Creates Flash-vased forms Version 8 includes image manipulation Language built on Java Has access to server-side Java code, meaning advanced developers can further expand it Database-agnostic—can communicate with any relational database

Microsoft Active Server Pages (ASP) Referred to as Active Server Pages Classic Still widely used Officially discontinued by MS in 2002 Bundled with MS’s web server, Internet Information Services, thus installs automatically on Windows servers Accesses other Windows services such as user account control

Microsoft Active Server Pages (ASP) Can be written in either Jscript (MS’s implementation of JavaScript), or VBScript. Technically database agnostic, most ASP pages use MS’s SQL Server as the database backend. Disadvantage is it only works in Windows environments without extra $$ investment

Microsoft ASP.NET Replacement for ASP Is part of the bigger.NET technology Has little in common with ASP Most.NET pages written in either VB.NET or C#.NET more powerful than ASP Currently in vs. 3 Simplifies many of the redundant tasks that take up Web developer’s time (e.g.,building database update forms)

PHP Hypertext Preprocessor Open-source alternative Originally developed as alternative to Perl Widely used Simple yet robust scripting language Can function with any relational database Most often implemented with MySQL (open-source, enterprise-grade database system)

PHP Hypertext Preprocessor PHP has many functions developed specifically with MySQL in mind (transitions easier) PHP can be run on any platform, using almost any Web server

Ruby on Rails RoR If designer doesn’t like PHP and wants to work in an open-source environment RoR is a framework that uses the Ruby programming language to implement dynamic Web sites The framework RoR provides sets specific file structures, naming conventions, and application structures Same ideals as ASP.net and ColdFusion

Perl Programming language developed in early days of Web Open source, easy to install Difficult to learn because of reliance on an obtuse programming syntax Responsible for making people aware of dynamic applications Many older Web aps still run Perl

Creating and Uploading Scripts Select the technology, then select the scripts to process form data Can write scripts in Notepad but WYSIWYG editors have it MS Expression Web makes creation of ASP.NET pages easier, vs 3 has PHP support D’weaver supports code handling for ASP, ASP.NET, ColdFusion and PHP Has “server behaviors” that can write most of the necessary code with dialogue boxes

Uploading Scripts Upload along with CSS and XHTML files’ In most cases, reside along with other files With Perl, separate folder required (also special permissions)

Setting up the Server Configuration Depends on the technology Download PHP, Perl, and ColdFusion from their Web sites Installed like any other application Installation will automatically detect the Web server software on the machine and add the necessary settings so the server and the server technology can communicate

Setting up the Server Configuration No configuration necessary if you are on a Windows server running MS’s Internet Information Services to run ASP Classic If running Windows 2003 or Vista, no need to set up server to run ASP.NET scripts For non-Windows environments, use third- party software, requires add’lt setup