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.

Make sure that you upload your files into the public_html directory of your cislinux account.

Send me an email when you are finished that includes the full URL of your homework assignment.

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

Microsoft Visual Basic 2008 Comprehensive Concepts And Techniques

Authors: Gary B. Shelly, Corinne Hoisington

1st Edition

1423927168, 978-1423927167

More Books

Students also viewed these Databases questions

Question

7 Explain how to plan proposals

Answered: 1 week ago

Question

e. What are notable achievements of the group?

Answered: 1 week ago