Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1. Write a file named hw6a.htm. This file should create a form with five buttons. Each button displays the name of an astrological sign. When

1. Write a file named hw6a.htm. This file should create a form with five buttons. Each button displays the name of an astrological sign. When the user clicks the button, an AJAX request is made to a file named hw6a.php. This file will take the astrological sign as a parameter, and produce a response that will consist of a JavaScript function call. There should be five possible function calls - one for each sign. When hw6a.htm receives the response, it should evaluate the function and display some information about that sign.

2. This part uses the database. Write a file named hw6b.htm. This file should create a form with a text field for a user to enter a customer ID. The form should also have a button. When the user clicks the button, an AJAX request is made to a file named hw6b.php. This file will take the customerid as a parameter, and produce a response that will consist of a JavaScript function call. If the customer id does not exist, the function call should be not_there(). If the customer id does exist, the function call should be there(), and there should have arguments that are all the fields of that customer. When hw6b.htm receives the response, it should display evaluate the function. The not_there() function should print an alert telling the user there was an error. The there() function should display the values of its arguments on the page.

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

Step: 3

blur-text-image

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: Heikki Topi, Jeffrey A Hoffer, Ramesh Venkataraman

13th Edition

0134773659, 978-0134773650

More Books

Students also viewed these Databases questions

Question

=+5 Evaluate whether the CCT program was effective.

Answered: 1 week ago

Question

=+Identify the type of global assignment for which CCT is needed.

Answered: 1 week ago