Homework 6: Server-Side Scripting
Grading Guidelines
Graders will test your homework on Firefox and Chrome.
Grading Guidelines:
Search Form (2.5 points in total)
• The initial webpage with proper fields in the search form, along with “Product Search” header. (1 point)
• Missing each field in the search form will deduct 0.5 points.
• The drop-down list should contain all the 9 categories, 0.25 points will be
deducted for each missing category. (maximum deduction of 0.5 points)
• Nearby search must be disabled in default, when select “Here”, the zip-code
input box should be disabled, 0.5 points
• Both Distance and Location edit boxes should have a placeholder, 0.25 points
• If there is no error message for invalid zip-code, 0.25 will be deducted.
• Validation (0.5 point)
for the search inputs, the error message(s) should indicate if fields are missing.
• If there is no error message for invalid input, 0.5 will be deducted.
• The “Clear” button resets the search form to the initial state and clears the results area.
(0.5 point)
• For each not correctly reset or cleared field, 0.25 point will be deducted, for a
maximum deduction of 0.5 point.
• When the “Search” button is clicked, the page maintains the previous input values after
displaying the results table. (0.5 point)
• For each not correctly maintained field, 0.25 point will be deducted, for a
maximum deduction of 0.5 point.
Search Result Table (3.0 points)
• Show the search information retrieved from the API service in a tabular format as described in the homework description. (2.5 points)
• For each missing column in the table, 0.5 point will be deducted.
• For each incorrect column value or column order mismatch, 0.5 point will be
deducted.
• For each incorrect value in a row or for each missing row, 0.25 point will be
deducted. (maximum 1 point)
• The search should work for all 9 categories. For every missing search, 0.5 point should be deducted.
• Handle the case when the API service returns an empty result set. (0.5 point)
Details Information (4.5 points)
• Show the information retrieved from the API service in a format as described in the homework description. (1 point)
• Show the title “Item Details” on top of the table, 0.25 points
• For each missing key value pair in the table, 0.25 point will be deducted
• Maximum deduction will be 1 point.
• Seller message should have a similar format as description described. (0.5 point)
• The height of this section should be dynamically depending on the inner part,
0.5 point
• Similar item should have a similar format as description described. (1.5 point)
• For each missing value of each item (photo/ title / price), 0.25 points will be deducted, with a maximum 0.5-point deduction.
• Have a similar slide effect as description and sample video described, 0.5 points.
• Each item in this section is clickable, and will show the new item info after click, 0.5 points.
• Handle the case when the API service returns an empty result for either seller message or similar items or both (1 point).
• For each missing message for empty photos and empty info, 0.5 points will be deducted, with a maximum 1-point deduction.
• Show the seller message and similar item subsections in a dynamic view (0.5 point)
**IMPORTANT**
• You should not call any eBay APIs directly from JavaScript. Doing this will result in 4.0- point penalty.
• If JQuery is used, 4.0 point will be deducted.
• You should implement hw6 in a single PHP file. If multiple files are submitted, 3.0 point
will be deducted.
• You should implement hw6 using AWS/GCP/Azure cloud server as described in hw5.
Otherwise, 3.0 points will be deducted.
Source code submission:
Students should submit their source electronically to GitHub Classroom account so that it can be graded by graders and compared to all other students’ code via the MOSS code comparison tool. In addition, on your course homework page, you must update HW6 link to refer to your new hw6 PHP page.