Updated: 10/12/16

Form Renderer


Experiment Title Experiment Details Experiments Results Success / Failure Done By Date
Experiment 1 Trialled use of Python-Beautiful Soup for HTML data extraction. Numerical data pulled from HTML table and printed on console. Data successfully pulled, became familiar with how to use DOM for pulling data from HTML files. Connor Daly 10/11/2016
Experiment 2 Used Request+Cheerio Node libraries to pull HTML data. Numerical data pulled from HTML table and printed on console. Established how to use Node.JS to extract HTML data (Node.js critical as required for compatibility with Electrode) however not representative as did not pull react components. Connor Daly 20/11/2016
Experiment 3 Built upon Experiment 2 to research how to export scraped data. Data pulled from experiment 2 successfully exported to text file. Established how to export data as a string to a text file within Node.js. This is potentially a means of exporting react components from form templates. Connor Daly 21/11/2016
Experiment 4 Using jQuery Ajax, to update a webpage display without reloading entire page. Successfully used script to modify web page display using external text file data (upon button click). Gained a better understanding of how new data pulled can be used to update a website without reloading the entire page. Daniil Gannota 22/11/2016

Progress Highlights

Based upon our experiments, we first learned how the components from the template can be extracted from the markup templates using tags using Request and Cheerio. Then we learned how to export data from Node.js to an external text file. From there we worked on finding a way of using jQuery Ajax scripts to update the display of a web page, without reloading the entire page. From these experiments, we were able to design the architectural layout of how the form renderer is to work potentially. First, each form component will be pulled from the template individually, using tag ids. They will then be exported either then to a text file, whereupon it will be parsed to alter the form view, or directly to the HTML page. We are unsure how viable the latter option is at present, as we are dependent on Team 41 to finalise the requirements and design of the templates.

The prototype works as intended, however, given what we have at this stage, little idea of how the template is supposed to look, implementing the final PoC may prove trickier. The actual scripting tool use to update the webpage view after pulling the components may also differ in the PoC, as our team will likely develop with the React library, rather than jQuery.

For further description about our experiments follow this link.


Tags

plans for term 2 design patterns performance analysis experiments version control form renderer prototype