New Perspectives on HTML5, CSS3, and JavaScript
New Perspectives on HTML5, CSS3, and JavaScript
6th Edition
ISBN: 9781305503922
Author: Patrick M. Carey
Publisher: Cengage Learning
bartleby

Concept explainers

Question
Book Icon
Chapter 12, Problem 7CP4

a.

Program Plan Intro

To create the defineDataArray() function and declare the tableRows variable, which references all of the tr elements within the table body of the sortable table.

b.

Program Plan Intro

To create a for loop that loops through the contents of tableRows and within that, declare a variable named rowCells and an empty array named rowValues with a size equal to the length of rowCells.

c.

Program Plan Intro

To insert a nested for loop within the for loop, that loops through the contents of the rowCells variable and add the text content of the row cell to the rowValues array.

d.

Program Plan Intro

To add the rowValues array to the tableData array after the nested for loop.

e.

Program Plan Intro

To add a two-dimensional array of all of the data in the table body in the tableData array after the outer for loop has finished.

Blurred answer
Students have asked these similar questions
Q1. Fill in the Missing Code. This web page configures a survey form to collect information on the favorite search engine used by web page visitors. The form action should submit the form to the server-side script, called survey.php. Some HTML tags and their attributes, indicated by <_>, are missing. Some HTML attribute values, indicated by "_", are missing.   <! DOCTYPE html><html lang="en"><head><title>Fill in the Missing Code</title><meta charset="utf-8"></head><body><h1>Vote for your favorite Search Engine</h1><form method="_" action="_"><input type="radio" name="_" id="Ysurvey" value="Yahoo">Yahoo!<br><input type="radio" name="survey" id="Gsurvey" value="Google">Google<br><input type="radio" name="_" id="Bsurvey" value="Bing"> Bing<br><_></form></body></html>
I am trying to add Create button(which will allow users to add a new student in the table) and Edit buttons (Which will allow users to edit the information such as name and id and a score of students) to this HTML code and I am not sure how to do it. I am thinking that I might need to add some sort of an DATABASE so Can someone please help me with that?HERE IS MY HTML CODE: <!DOCTYPE html> <html> <style> table, th, td { border:1px solid black; border-collapse: collapse; } </style> <body> <h2>Student List</h2> <table style="width:100%"> <tr> <th>Student</th> <th>ID</th> <th>Score</th> <th>Edit Link</th> </tr> <tr> <td>Ranchoddas Chanchad</td> <td>1892</td> <td>99</td> <td> Edit button which let user edit the score of students. </td> </tr> </table> </body> </html>
Please use Flask to build a simple HTML website. This website can have 5 pages, e.g., index, contact, about, etc. This website needs to include the following topics.  1. Flask routings.  2. Flask render templates. 3. Flask WTF. (forms) 4. Flask base HTML. You can add a nav bar in this base.html.  5. Flask static files, e.g., CSS file. You are free to choose any topic.
Knowledge Booster
Background pattern image
Computer Science
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
SEE MORE QUESTIONS
Recommended textbooks for you
Text book image
New Perspectives on HTML5, CSS3, and JavaScript
Computer Science
ISBN:9781305503922
Author:Patrick M. Carey
Publisher:Cengage Learning