Question: Build a web-based applicatior. app.html use JavaScript and HTML to complete the following questions: In the file app.js and 1. Create a form with the

 Build a web-based applicatior. app.html use JavaScript and HTML to complete

Build a web-based applicatior. app.html use JavaScript and HTML to complete the following questions: In the file app.js and 1. Create a form with the id "createGenre" to create a new instance of the Genre class. The form contains fields needed for creating a genre. The fields will have an id with the same name of the field that it captures. The form will capture information from the user and stores the record in a global array called "genres" using the "enqueue" function The form will clear the fields after the record is inserted correctly. After to keep genres in ascending inserting the genre use the "sort" functior order. Create a form with the id "createMovie" to create a new instance of the Movie class. The form contains fields needed for creating a genre. The fields will have an id with the same name of the field that it captures. Association of only one genre is required for the formm The genre is specified via a dropdown list (id-genres') which is populated using the "genres" global array. The form will capture information from the user and stores the record in a global array called "movies" using the "enqueue" function from form will clear the fields after the record is inserted correctly 2. The Create a function "displayGenres" that will use the createElement method to display an ordered list of genres in the section with the id "genreList". 3. 4. Create a function "displayMovies" that will use strings to display a table of movies in the section with the id movieList". The columns of the tables are related to the fields of the movie class. Write a function called "loadGenres" that will make an AJAX GET request to retrieve the file "genreDB.txt" that has a list of genres separated by commas. The function will load the data and populate the global genres array. The loadGenres function will also use the displayGenres function 5. to display results. Write a function called "loadMovies" that will make a request to a json file called "moviesDB.json". The function will load the data and populate the global genres array. The loadMovies function will also use the displayMovies function created display results. 6. 0 Build a web-based applicatior. app.html use JavaScript and HTML to complete the following questions: In the file app.js and 1. Create a form with the id "createGenre" to create a new instance of the Genre class. The form contains fields needed for creating a genre. The fields will have an id with the same name of the field that it captures. The form will capture information from the user and stores the record in a global array called "genres" using the "enqueue" function The form will clear the fields after the record is inserted correctly. After to keep genres in ascending inserting the genre use the "sort" functior order. Create a form with the id "createMovie" to create a new instance of the Movie class. The form contains fields needed for creating a genre. The fields will have an id with the same name of the field that it captures. Association of only one genre is required for the formm The genre is specified via a dropdown list (id-genres') which is populated using the "genres" global array. The form will capture information from the user and stores the record in a global array called "movies" using the "enqueue" function from form will clear the fields after the record is inserted correctly 2. The Create a function "displayGenres" that will use the createElement method to display an ordered list of genres in the section with the id "genreList". 3. 4. Create a function "displayMovies" that will use strings to display a table of movies in the section with the id movieList". The columns of the tables are related to the fields of the movie class. Write a function called "loadGenres" that will make an AJAX GET request to retrieve the file "genreDB.txt" that has a list of genres separated by commas. The function will load the data and populate the global genres array. The loadGenres function will also use the displayGenres function 5. to display results. Write a function called "loadMovies" that will make a request to a json file called "moviesDB.json". The function will load the data and populate the global genres array. The loadMovies function will also use the displayMovies function created display results. 6. 0

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!