Use Jvascript to write this code by Visual Studio Code
For this lab you must use a reasonable faceted search example, each item must have at least three categorical attributes and at least one numeric attribute. Attributes such as ID, name etc do not count as categorical or numeric attributes.
(a) Design a web page that includes three input fields one for each categorical attribute and a button whose label is ‘filter’. Also extend your CSV faceted search item file to include at least 10 items i.e. 10 rows.
(b) Create a HTML file that implements the above design. Include an empty div element that will hold your faceted search item table.
(c) Integrate your last week’s code with your HTML file i.e. the code that loads a csv file containing your faceted search items (remember you will need to run a local server for this to work). If you do not have working code from last week then adapt my last week’s lecture code (load.html).
(d) Modify your HTML file so that a user can enter a value for each attribute. When the page’s ‘filter’ button is clicked, the input fields are read (collecting any filter conditions), then a filtered table of your faceted search items is created and shown in the web browser. You must use a table element.
<html>
<head><title>Question answer
</title></head>
<body>
<h1>Form </h1>
<form>
ID: <br>
<input type="text" name="ID"> <br>
Name: <br>
<input type="text" name="Name"> <br>
Contact no: <br>
<input type="text" name="COntact no."><br>
<input type ="Button"
value="Filter"><br><br>
</form>
<input id="fileSelect" type="file" accept=".csv,
application/vnd.openxmlformats-Rtmnu results - Form Responses
1.spreadsheetml.sheet, application/vnd.ms-excel" />
</body>
</html>
Get Answers For Free
Most questions answered within 1 hours.