Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started