Web-based Application Development Lecture 14 February 23, 2006 Anita Raja.

Slides:



Advertisements
Similar presentations
© 2011 Delmar, Cengage Learning Chapter 1 Getting Started with Dreamweaver.
Advertisements

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?
The Web Warrior Guide to Web Design Technologies
JavaScript Forms Form Validation Cookies. What JavaScript can do  Control document appearance and content  Control the browser  Interact with user.
Web-based Application Development Lecture 9 February 7, 2006 Anita Raja.
Server-Side vs. Client-Side Scripting Languages
Chapter 7 © 2001 by Addison Wesley Longman, Inc. 1 Chapter 7 Sebesta: Programming the World Wide Web.
JavaScript Forms Form Validation Cookies CGI Programs.
Creating Web Page Forms. Objectives Describe how Web forms can interact with a server-based program Insert a form into a Web page Create and format a.
Tutorial 6 Working with Web Forms
Web-based Application Development Lecture 17 March 16, 2006 Anita Raja.
CIS101 Introduction to Computing Week 05. Agenda Your questions CIS101 Survey Introduction to the Internet & HTML Online HTML Resources Using the HTML.
Web-based Application Development Lecture 13 February 21, 2006 Anita Raja.
Web-based Application Development Lecture 18 March 21, 2006 Anita Raja.
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.
Dreamweaver 8 Concepts and Techniques Introduction Web Site Development and Macromedia Dreamweaver 8.
Creating Web Page Forms
Creating a Web Page HTML, FrontPage, Word, Composer.
Chapter 9 Collecting Data with Forms. A form on a web page consists of form objects such as text boxes or radio buttons into which users type information.
1 Introduction to Web Development. Web Basics The Web consists of computers on the Internet connected to each other in a specific way Used in all levels.
Web-based Application Development Lecture 7 January 31, 2006 Anita Raja.
DHTML - Introduction Introduction to DHTML, the DOM, JS review.
Reading Data in Web Pages tMyn1 Reading Data in Web Pages A very common application of PHP is to have an HTML form gather information from a website's.
XP Tutorial 6New Perspectives on Creating Web Pages with HTML, XHTML, and XML 1 Creating Web Page Forms Designing a Product Registration Form Tutorial.
XP Tutorial 6New Perspectives on HTML and XHTML, Comprehensive 1 Creating Web Page Forms Designing a Product Registration Form Tutorial 6.
HTML Forms/Events (Instructor Lesson) The Event model HTML Forms Custom Events 1.
CNIT 133 Interactive Web Pags – JavaScript and AJAX Event and Event Handling.
INTRODUCTION TO DREAMWEAVER 8. What we already know…  Design basics  Contrast  Repetition  Alignment  Repetition  HTML.
Chapter 6: Forms JavaScript - Introductory. Previewing the Product Registration Form.
Introducing Dreamweaver MX 2004
Tutorial 1 Getting Started with Adobe Dreamweaver CS3
Event Handlers CS101 Introduction to Computing. Learning Goals Learn about event handlers Determine how events are useful in JavaScript Discover where.
CHAPTER 9 Introducing Microsoft Office Learning Objectives Start Office programs and explore common elements Use the Ribbon Work with files Use.
WEEK 3 AND 4 USING CLIENT-SIDE SCRIPTS TO ENHANCE WEB APPLICATIONS.
Copyright ©2005  Department of Computer & Information Science Introducing DHTML & DOM: JavaScript & Forms.
Web Programming: Client/Server Applications Server sends the web pages to the client. –built into Visual Studio for development purposes Client displays.
Chapter 5: XHTML, Part 2 CIS 275—Web Application Development for Business I.
An Introduction To Websites With a little of help from “WebPages That Suck.
Lesson13. JavaScript JavaScript is an interpreted language, designed to function within a web browser. It can also be used on the server.
Using Client-Side Scripts to Enhance Web Applications 1.
Introduction to JavaScript 41 Introduction to Programming the WWW I CMSC Winter 2004 Lecture 17.
JavaScript, Fourth Edition Chapter 5 Validating Form Data with JavaScript.
DHTML - Introduction Chapter Introduction to DHTML, the DOM, JS review.
Chapter 8 Collecting Data with Forms. Chapter 8 Lessons Introduction 1.Plan and create a form 2.Edit and format a form 3.Work with form objects 4.Test.
JavaScript - A Web Script Language Fred Durao
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.
Creating Web Page Forms. Introducing Web Forms Web forms collect information from users Web forms include different control elements including: –Input.
Lecture 10 JavaScript: DOM and Dynamic HTML Boriana Koleva Room: C54
Cs332a_chapt10.ppt CS332A Advanced HTML Programming DHTML Dynamic Hypertext Markup Language A term describing a series of technologies Not a stand-a-lone.
Evaluating & Maintaining a Site Domain 6. Conduct Technical Tests Dreamweaver provides many tools to assist in finalizing and testing your website for.
Chapter 1 Getting Started With Dreamweaver. Exploring the Dreamweaver Workspace The Dreamweaver workspace is where you can find all the tools to create.
1 CSC160 Chapter 7: Events and Event Handlers. 2 Outline Event and event handlers onClick event handler onMouseOver event handler onMouseOut event handler.
Event Handling. Objectives Using event handlers Simulating events Using event-related methods.
WDMD 170 – UW Stevens Point 1 WDMD 170 Internet Languages eLesson: Variables, Functions and Events (NON-Audio version) © Dr. David C. Gibbs WDMD.
Introduction to HTML. _______________________________________________________________________________________________________________ 2 Outline Key issues.
Tutorial 6 Working with Web Forms. 2New Perspectives on HTML, XHTML, and XML, Comprehensive, 3rd Edition Objectives Explore how Web forms interact with.
HTML FORMS The TEXT Object Presented By: Ankit Gupta.
HTML Forms. A form is simply an area that can contain form fields. Form fields are objects that allow the visitor to enter information - for example text.
Website Design, Development and Maintenance ONLY TAKE DOWN NOTES ON INDICATED SLIDES.
Microsoft Office 2008 for Mac – Illustrated Unit D: Getting Started with Safari.
20-753: Fundamentals of Web Programming 1 Lecture 13: Javascript II Fundamentals of Web Programming Lecture 13: Javascript II.
INTERNET APPLICATIONS CPIT405 Forms, Internal links, meta tags, search engine friendly websites.
Here are some things you can do while you wait 1.Open your omeka.net site in your browser (e.g. 2.Open.
1 MIT 5316 Web-Based Computing Lecture 1. 2 Welcome Introduction Syllabus.
HTML Structure II (Form) WEEK 2.2. Contents Table Form.
XP Tutorial 6New Perspectives on HTML, XHTML, and DHTML, Comprehensive 1 Creating Web Page Forms Designing a Product Registration Form Tutorial 6.
Web Site Development and Macromedia Dreamweaver 8
The Web Wizard’s Guide to Web Design
Presentation transcript:

Web-based Application Development Lecture 14 February 23, 2006 Anita Raja

The Web Wizard’s Guide to Web Design Chapter 8 Testing and Posting the Site

Technical Testing What should you test? Browser Platform Display Bandwidth Plug-in

Technical Testing – Browser 98% of users: Internet Explorer Netscape Navigator 2% use something else What does your target audience use? Sites don’t have to be identical – they just have to work properly

Technical Testing - Browser What should you look for? How is text displayed? How do the images align with each other and with text? Are tables/frames arranged properly? Are sound, video, and animation handled properly?

Technical Testing - Platform Type: PC Laptop Other? OS Windows Macintosh UNIX Linux

Technical Testing - Platform What should you look for? Fonts Colors Filename problems between Macs and PCs IE and NN run differently on different platforms

Technical Testing - Display Pixel Setting 800x x x768 Color Depth 16-bit 8-bit

Technical Testing - Bandwidth Connection speeds 8 seconds! Test at slowest speed for maximum effect MethodBandwidth 50K Download Time 56K Modem56K7.1 ISDN128K3.1 DSL K1.6 Cable Modem 521K0.8 LAN1MB+0.4

Technical Testing - Bandwidth How to fix problems? Reduce number of images Compress images Reduces visual quality but downloads faster Use thumbnails Use text for navigation instead of images or graphics

Technical Testing – Plug-ins Two problems: Not all users will have all the plug-ins needed Not all users will be comfortable installing plug- ins Provide users with Which plug-ins are needed Where they can be obtained How to install them How to configure for your site’s use

User Testing Let users access your site Under what circumstances? Casual surfer or business critical? Home or office? (or somewhere else?) New user or long-term relationship? Novice or experienced user?

User Testing Collect their reactions Direct observation Indirect observation Ask for their feedback directly Survey Questionnaire

Posting the Site

Making the Connection Register your site Hosted on someone else’s server under their domain name Register your own domain name (still has to be hosted on someone else’s server) Benefits Available to search engines

Assignment Create a check list that someone could use to quickly evaluate a site based on the criteria discussed in Chapter 8. Include enough of the material in Chapter 8 so the checklist covers the most significant topics. Use this checklist to evaluate the site you selected on day one.day one Turn in the site evaluation, a screen shot of the site, and a blank checklist.

Programming the Web using XHTML and JavaScript Chapter 10 Forms & Interactivity

Interactive I/O with Text Boxes To acquire data from users: Methods (alert, confirm, prompt) Forms (text, check, radio, etc.) More about forms Can be identified id (or name) attribute)

Interactive I/O with Text Boxes …

Interactive I/O with Text Boxes Data elements: Can be named Can be pre-filled (e.g. have a default value) Have a size

Interactive I/O with Text Boxes Ch10-Ex-01

Interactive I/O with Text Boxes A form is an object Child of the document object A form’s children are Its fields Its length (i.e., the number of fields) The main property of each field is its value

Interactive I/O with Text Boxes Refer to field values using dot notation Can use as a parameter alert(document.surferData.nameBox.value) Ch10-Ex-02 document.surferData.nameBox.value

Interactive I/O with Text Boxes Two problems with the input element: It does not include any actions like “wait for the user” It isn’t limited to just input; it can be used for output as well If you want to wait for the user to enter data before using the object you have to write some code Ch10-Ex-03 and Ch10-Ex-03a Ch10-Ex-03 Ch10-Ex-03a

More Parameters Can refer to a form element in a function Ch10-Ex-04 Can pass a value to a function as a parameter Ch10-Ex-05

More Parameters Parameters must conform to the object hierarchy myHouse livingRmdiningRm kitchen bedRoom closet box Get the box that’s in the closet that’s in the bedRoom that’s in myHouse myHouse.bedRoom.closet.box

More Parameters Can pass an object, not its value, as a parameter Ch10-Ex-06

More Parameters Can pass part of an object, as a parameter Ch10-Ex-07

More Parameters Pass both the input object (nameBox) and the output object (outputBox) as parameters Ch10-Ex-08

More Parameters Try passing both values: onclick=“printGreeting( document.surferData.nameBox.value, document.SurferData.outputBox.value )” Ch10-Ex-09 Why doesn’t this work?

More Parameters When passing “things” as parameters: JavaScript passes real objects (in effect) but copies of properties Thus, changes made to a property inside the function are made to the copy, not the original

More Parameters Pass by copy JavaScript copies the item and sends the copy to the function Pass by address JavaScript tells the function where to find the item to be used as a parameter

More Parameters We’ve passed parts of a form as parameters text objects (nameBox, outputBox) value property of an object Can pass the form object itself: onclick=“printGreeting(document.surferData)” (Ch10-Ex-07)Ch10-Ex-07

More Parameters Actual vs. formal parameters function printGreeting(s_form) { … } … printGreeting(document.surferData) … Actual parameter Formal parameter

Focus, Blur, and Change Focus event occurs when user Selects a text field or Tabs into one Handled with an onfocus event handler Blur event occurs when user Leaves the text field Handled with an onblur event handler

Focus, Blur, and Change Change event occurs when user Leaves the text field and The value of the text field has changed Handled with an onchange event handler How can we use these event handlers? Ch10-Ex-10

Submitting Form Information Encoding type: <form method=“post” enctype=“text/plain”

Assignment Debugging Exercise, p. 295 Correct errors Post corrected document to your Web space as “Lagerstrom-Ch-10.html” Grade based on: Appearance Technical correctness of code