Presentation is loading. Please wait.

Presentation is loading. Please wait.

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

Similar presentations


Presentation on theme: "Web-based Application Development Lecture 14 February 23, 2006 Anita Raja."— Presentation transcript:

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

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

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

4 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

5 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?

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

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

8 Technical Testing - Display Pixel Setting 800x600 640x480 1024x768 Color Depth 16-bit 8-bit

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

10 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

11 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

12 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?

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

14 Posting the Site

15 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

16 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.

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

18 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)

19 Interactive I/O with Text Boxes …

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

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

22 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

23 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

24 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

25 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

26 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

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

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

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

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

31 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

32 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

33 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

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

35 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

36 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

37 Submitting Form Information Encoding type: <form method=“post” enctype=“text/plain” action=“mailto:nblong@uncc.edu”>

38 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


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

Similar presentations


Ads by Google