Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Modern Database Management

Authors: Jeff Hoffer, Ramesh Venkataraman, Heikki Topi

12th edition

133544613, 978-0133544619

More Books

Students also viewed these Databases questions

Question

=+j Understand different types of regions in the world.

Answered: 1 week ago