Question
1. Write a file named hw5a.htm. This file should create a form with a text field for a user to enter a country. The form
1. Write a file named hw5a.htm. This file should create a form with a text field for a user to enter a country. The form should also have a button. When the user clicks the button, an AJAX request is made to a file named hw5a.php. This file will take the country in North America (Canada, United States, Mexico) as a parameter, and produce a response that will consist of a brief description of that country. When hw5a.htm receives the response, it should display it inside a DIV.
2. Write a file named hw5b.htm. This file should create a form with a select for a user to choose one of twelve astrological signs. The form should also have a button. When the user clicks the button, an AJAX request is made to a file named hw5b.php. This file will take the value of the select as a parameter, and produce a response that will consist of XML that contains nodes consisting of the astrological sign, the dates of that sign, and a brief horoscope. When hwb.htm receives the response, it should display this data inside a DIV.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started