Name: Anonymous 2007-04-26 11:32 ID:YvWg88SJ
Desperately need help to finish a Javascript assignment i have due in 3 hours. I really need help guys I am teh n00b and know nothing about javascript. My assigment looks like this and is probably beginner level work but i am less than a beginner:
Overview: Your hometown (if you’re from a rural area, choose the closest “large” town) Chamber of Commerce has asked you to create a couple of new pages for their Web site: 1) a “Contact Us” feedback form and 2) a map that shows the location of participating Chamber businesses.
Feedback Form (40 points)
The feedback form should include the following fields, and should meet the following requirements:
Field Name Type of Data Required? Notes
First Name Alphanumeric Y Minimum of 2 characters
Last Name Alphanumeric Y
Street Address Alphanumeric Y
City Alphanumeric Y
State Alpha Y Drop-down, should not validate if not selected
Zip Code Numeric Only Y Validate 5 and 5+4
Phone Numeric Only N Validate area code (3 numbers), exchange (3) and number (4)
Email address Alphanumeric Y
Error messages should be user-friendly, and should all appear when the site visitor submits the form. Error messages should appear next to their corresponding fields, and should be easily identifiable. The results of a successful form should be summarized in a popup dialogue box.
Map (40 points)
The Chamber of Commerce has also asked for a “proof of concept” for the map—it only needs to include the location for five businesses of your choosing. If the project works, they will then work to complete the map. Your work should use the Google map API as the main interface element, and it should have a custom icon for the locations that you create (same icon for each location). Clicking on the icon should produce a balloon that lists the name of the business and its street address). The name should be clickable to the company’s Web page. If the company doesn’t have a Web page, it shouldn’t be clickable, but note that at least one company name should be clickable.
Addresses should either be hard-coded and rely on the API for geo-coding, or you can lookup corresponding geo-codes using a site like http://geocoder.us and use those instead (it’s more reliable).
To complete this project, you will need the information available at: http://www.google.com/apis/maps/.
Overview: Your hometown (if you’re from a rural area, choose the closest “large” town) Chamber of Commerce has asked you to create a couple of new pages for their Web site: 1) a “Contact Us” feedback form and 2) a map that shows the location of participating Chamber businesses.
Feedback Form (40 points)
The feedback form should include the following fields, and should meet the following requirements:
Field Name Type of Data Required? Notes
First Name Alphanumeric Y Minimum of 2 characters
Last Name Alphanumeric Y
Street Address Alphanumeric Y
City Alphanumeric Y
State Alpha Y Drop-down, should not validate if not selected
Zip Code Numeric Only Y Validate 5 and 5+4
Phone Numeric Only N Validate area code (3 numbers), exchange (3) and number (4)
Email address Alphanumeric Y
Error messages should be user-friendly, and should all appear when the site visitor submits the form. Error messages should appear next to their corresponding fields, and should be easily identifiable. The results of a successful form should be summarized in a popup dialogue box.
Map (40 points)
The Chamber of Commerce has also asked for a “proof of concept” for the map—it only needs to include the location for five businesses of your choosing. If the project works, they will then work to complete the map. Your work should use the Google map API as the main interface element, and it should have a custom icon for the locations that you create (same icon for each location). Clicking on the icon should produce a balloon that lists the name of the business and its street address). The name should be clickable to the company’s Web page. If the company doesn’t have a Web page, it shouldn’t be clickable, but note that at least one company name should be clickable.
Addresses should either be hard-coded and rely on the API for geo-coding, or you can lookup corresponding geo-codes using a site like http://geocoder.us and use those instead (it’s more reliable).
To complete this project, you will need the information available at: http://www.google.com/apis/maps/.