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 12CP4

a.

Program Plan Intro

To create the columnSort() function and declare a variable named columnText equal to the text content of the event object target.

b.

Program Plan Intro

To retrieve the index number of the column by applying the indexOf() method to the dataCategories array and store the index number in the columnIndex variable.

c.

Program Plan Intro

To test whether columnIndex is equal to sortIndex. If it is equal then multiply the sortDirection variable by -1 otherwise set sortIndex equal to columnIndex.

d.

Program Plan Intro

To declare the columnNumber variable equal to columnIndex + 1.

e.

Program Plan Intro

To declare the columnStyles variable and then delete the third rule from the last style sheet.

f.

Program Plan Intro

To add the given style rule to display the icon on the basis of ascending and descending order.

g.

Program Plan Intro

To sort the values in the tableData array using the dataSort2D() function.

h.

Program Plan Intro

To create and append the newly sorted table body to the web table by calling the writeTableData() function.

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