1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Rzqust [24]
3 years ago
14

1. In the.js file, write the JavaScript code for this application. Within the click event handlers for the elements in the sideb

ar, use the title attribute for each link to build the name of the JSON file that needs to be retrieved. Then, use that name to get the data for the speaker, enclose that data in HTML elements that are just like the ones that are used in the starting HTML for the first speaker, and put those elements in the main element in the HTML. That way, the CSS will work the same for the Ajax data as it did for the starting HTML. 2. Don’t forget to clear the elements from the main element before you put the new Ajax data in that element. 3. Verify there are no errors.
Computers and Technology
1 answer:
Iteru [2.4K]3 years ago
7 0

Answer:

Kindly note that the codes below must be executed through any server like apache, xampp, ngnix, etc...

Explanation:

Other files are not changed... only speakers.js modified

speakers.js

$(document).ready(function() {

   $("#nav_list li").click(function() {

       var title = $(this).children("a").attr("title");

       $.get(title + ".json", function(data, status) {

        data = data['speakers'][0];

  $("main h1").html(data['title']);

  $("main h2").html(data['month']+"<br />"+data['speaker']);

  $("main img").attr("src", data.image);

  $("main p").html(data.text);

       });

   });

});

You might be interested in
WILL MARK BRAIN LIST!
Maslowich
I think it’s a

if it isn’t a then it’s d
6 0
3 years ago
Read 2 more answers
Which file extension takes less storage space?
anyanavicka [17]

I believe the answer would be the JPEG file extension.

4 0
3 years ago
Read 2 more answers
How many bits are in the host portion of the address 192.168.150.19/23?
Alecsey [184]
23 bits are the network mask, so 32 - 23 bits are the node number.
3 0
3 years ago
You can use Spotify to embed or link to what media
Anna35 [415]

Spotify is an application that is used to play music, podcasts, and songs using internet access.

<u>Explanation:</u>

Spotify is a very versatile and well-developed application that enables it to personalize the user experience. The user is provided to choose their favourite singers and composers. A user can select language preferences about the music they like.

The algorithms of Spotify work in a fashion so as to recommend more music from the user's preferences and previously played songs. Two users can have different preferences and subsequently, their Spotify will appear in a different manner from each other because of the personalization that has been provided to them through their preferences.    

8 0
3 years ago
Briefly describe the client/server model.
Lesechka [4]
<span>a distributed application structure that partitions tasks or workloads between the providers of a resource or service, called servers, and service requester, called clients</span>
6 0
4 years ago
Other questions:
  • A(n) ____ database is an application appropriate for an object-oriented database that contains text links to other types of docu
    7·1 answer
  • The atomic number of oxygen is 8. the atomic mass of oxygen is 16. him many neutrons does oxygen have
    12·1 answer
  • What is an enterprise system
    14·2 answers
  • Which of the following refers to a combination of hardware and software that ensures only authorized individuals gain entry into
    11·1 answer
  • Why are fixed resistors’ values indicated by color bands rather than printing the numeric value on their exterior?
    13·1 answer
  • Convert the binary (base-2) number 1001 to decimal (base-10).
    9·1 answer
  • You will be given a string, containing both uppercase and lowercase alphabets(numbers are not allowed).
    14·1 answer
  • Of the key reasons for creating organizational units which of the following is not one of them?
    13·1 answer
  • Computer hardware without software is usless and compyrersoftware without hardware is meaningless discuss
    6·1 answer
  • What does Nicholas Carr suggest in his article "Is Google Making Us
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!