Title: Project 3 ITSE 2402--Intermediate Web Programming
Course: Intermediate Web Programming (25436)

ITSE 2402 Intermediate Web
Project 3
- You will continue to work with your ATM site. You are going to update your ATM program that not only allows you to have a money exchange (your current conversion.htm and currency.htm pages), but also allows your to check the weather and in the next project you will also write pages to check your balance, make deposits and withdrawals.
- Open your login page from project 2 and save to your project3 folder. Also save your currency.htm and conversion.htm pages in your project3 folder just for convenience.
  - You do not want your login page to always go to your currency.htm page. You want to give the user options (like an ATM gives options but we go further) for the user to go to multiple pages.
  - Add buttons to your login page to that have the values withdraw, check balance, deposit, and weather.
  - Since you are to have multiple options, you need to give the user several buttons to choose from. This means that you will not set the action in the form, you will use a button type instead of a submit type, and you will need to build your own state information to take with you to the next page.
  - Since you no longer have the use of the onsubmit() function, you must figure out another way to make sure the name has been entered to validate the form. Previously you probably used the onsubmit to call a function to validate the page. Since you no longer have a submit button, you obviously can't call the function from onsubmit. Where can you call the function?
  - Change your submit button used for Money Exchange to be input type button. (It will still say Money Exchange.)
  - Click on pickTrans.htm. The pickTrans.htm page shows you how to use the location.href to link to another page rather than using the submit button. However, this does not text the name. You must call a function to test the name. And, in that function set up the location.href.
  - Notice how picTrans builds the location.href command to link to another page.
  - Using the location.href, write the function to check that the name has been entered and then link to either your currency.htm page (Money Exchange) or weather.htm page (Weather)

- weather.htm
  - The pages for balance, deposit and withdrawal will wait for the php exercises.
  - Starting with your templateHTML5.htm page, create a weather.htm page.
  - See JavaScript text page 734, Exercise 12.2 to write the RSS for current weather. (Every place the book has weatherRequest, change to httpRequest.) Check the weather for a zip code. (You do not have to check validity other than there are 5 digits and the text entered is numeric.)
  - Also on page 734, step 4, the text has action="", should be action="#"
- Update index page with links
  - Open your index.htm page in Komodo Edit.
  - Update your index.htm page to link to your pages in your project.
  - Upload your index.htm page and all pages associated with your project.
  - Be sure to test for validation.
  - Email your instructor for grading.

If any of these steps have errors notify your instructor.