JavaScript AJAX Basics (retiring) Programming AJAX Processing JSON Data

Karen Shea
Karen Shea
13,731 Points

widget.html file is not showing up

I have all the other files I need, but the widget.html file is nonexistent.

Olivia Culver
Olivia Culver
Full Stack JavaScript Techdegree Student 15,421 Points

Are you referring to widget.js? If so, it is under the js folder. Or are you talking about index.html?

Conrad Casper
Conrad Casper
4,082 Points

Having the same problem! widget.js shows but not widget.html

1 Answer

Martin Park
Martin Park
12,792 Points

Hi,

There is no widget.html file required here.

In the video Dave refers to a widget.html file to show what the hypothetical designer gave us. It is basically a mock up of what the finished file should look like. We do not need it in this example.

If you are meaning where does the Employee information come from it is specified in the the AJAX Open Request and dealt with in the AJAX callback function:

xhr.open('GET', 'data/employees.json');