Create a page that uses XHR to communicate with external URL

Assignment Help JAVA Programming
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

Reference no: EM132267117

Questions Cloud

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).

Reviews

len2267117

3/26/2019 11:33:16 PM

Instructions: I have attached my javascript assignment and also a link that is required for that. Please note this has to be done in javascript and not Jquery. Zip all files into a single archive named StudentNumber _Assignment3.zip. Submit the zip file to the marker. Please allow yourself time to package the file and send it. Anything received after the deadline is considered late.

Write a Review

JAVA Programming Questions & Answers

  Recursive factorial program

Write a class Array that encapsulates an array and provides bounds-checked access. Create a recursive factorial program that prompts the user for an integer N and writes out a series of equations representing the calculation of N!.

  Hunt the wumpus game

Reprot on Hunt the Wumpus Game has Source Code listing, screen captures and UML design here and also, may include Javadoc source here.

  Create a gui interface

Create GUI Interface in java programing with these function: Sort by last name and print all employees info, Sort by job title and print all employees info, Sort by weekly salary and print all employees info, search by job title and print that emp..

  Plot pois on a graph

Write a JAVA program that would get the locations of all the POIs from the file and plot them on a map.

  Write a university grading system in java

University grading system maintains number of tables to store, retrieve and manipulate student marks. Write a JAVA program that would simulate a number of cars.

  Wolves and sheep: design a game

This project is designed a game in java. you choose whether you'd like to write a wolf or a sheep agent. Then, you are assigned to either a "sheep" or a "wolf" team.

  Build a graphical user interface for displaying the image

Build a graphical user interface for displaying the image groups (= cluster) in JMJRST. Design and implement using a Swing interface.

  Determine the day of the week for new year''s day

This assignment contains a java project. Project evaluates the day of the week for New Year's Day.

  Write a java windowed application

Write a Java windowed application to do online quiz on general knowledge and the application also displays the quiz result.

  Input pairs of natural numbers

Java program to input pairs of natural numbers.

  Create classes implement java interface

Interface that contains a generic type. Create two classes that implement this interface.

  Java class, array, link list , generic class

These 14 questions covers java class, Array, link list , generic class.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd