Reference no: EM132267117
Applied Computer Science Internet Programming Assignment -
Goals - The goal of this assignment increase your understanding of asynchronous communication and the JSON format.
Create a page that uses XHR to communicate with an external URL and retrieve values and present those values on a website.
Successful Calls -
Create a button on your page that says "Request Color".
Clicking the button will trigger an XHR request to the colors.php file located in the Assignment folder on the website.
- You must include a passcode? with value of secret using GET.
- You must take the response (JSON) and create a new Box on the page that has the name of the colour with the background of the color.
- Your CSS file must ensure each Box is 200x200 which means the background colour as seen by the user is 200x200.
- We don't want the text touching the edge, so make sure there's 10px of padding around it.
- We don't want the boxes touching each other so ensure there is a 20px margin.
The titles of the colors must be in white.
The boxes should sit next to each other and continue to spill over, left to right as more are added. They should spill to new lines if needed.
Failed Calls -
Create a second button on your page that says "Request Failure".
Clicking on the second button will trigger a different XHR request to the colors.php file but without? the passcode.
- Your file must detect the error and present the error message in an <h2><h2>
- Your code should clear the message whenever a successful call is made.
Provide your solution a three separate files (html, css, and js).
Note - Please note this has to be done in javascript and not Jquery.
Attachment:- Assignment File.rar
What is the period in microseconds
: Suppose you have a digital signal with a period of 1367 milliseconds. What is the period in microseconds?
|
Enter an integer test score
: Can you help with a Python program that asks the user to enter an integer test score. Use the nested if-else structure to implement the following
|
Levels of planning mission-development and operation
: What are the three levels of planning (mission, development, operation)? Be prepared to apply these to examples.
|
What kinds of arguments does he use
: How does Pope Urban try to inspire his audience to go on Crusade? What kinds of arguments does he use?
|
Create a page that uses XHR to communicate with external URL
: ACS-2909-051 Applied Computer Science Internet Programming Assignment, University of Winnipeg Canada. Create page that uses XHR to communicate with external URL
|
What is anti-semitism and how is it justified in these text
: "What is anti-Semitism and how is it justified in these texts? What connection, if any, is there between anti-Semitism and Nationalism? "
|
What activities should rn engage in to increase compliance
: Recent data from your unit shows that only 78% of the nurses are engaging in routine hand-washing. What activities should the RN engage in to increase.
|
What is total cost of outsourcing and offshoring motor
: The company expects to spend $12,500 per year on contracting and relationship maintenance. What is the total cost of outsourcing and offshoring this motor?
|
Prepare to discuss your care plan and rationales
: Map a nursing care plan/clinical pathway for a patient with a specific genetic disorder (e.g., sickle cell disease, hemophilia, cystic fibrosis, Huntington).
|