lizby Guru
 Joined: 17/05/2016 Location: United StatesPosts: 3811 |
| Posted: 03:15am 28 Apr 2017 |
|
|
|
Doug--could you explain what you mean by mismatched elements? (By the way, I thought overnight that I might not have <table></table>, <tr></tr>, <td></td> properly balanced, so I'm writing a program to outline that structure).
The HTML code is built following a practice I've been using since 2006 with the picaxe and SimpleLan ethernet module (long since discontinued).
I hand-code an html template and designate variables that I want to be able to change with a "~" followed by 2 digits. For example, I customarily use "~01" for date and "~02" for time. I store the template on the microprocessor--either in eeprom for a picaxe, on the SD for a Micromite Explore-64, or after being coded programmatically as basic assignment statements for the Explore-28--and then run through it in code replacing the "~nn" text with current variable values.
In order to align things the way I want, I use a table as master container, then other tables within it to create a column structure.
The template will display in a browser, though not all the "~nn"s will (because of their use as "checked" fields for checkboxes and radio boxes, or as background color--happily browsers generally ignore what they don't understand).
Here is the displayed template for this application--you can see "~30"-"~35" which will be replaced with sensor readings, and also "~40"-"~45", which can be used to simulate those sensor readings for testing the code when the "AUTO" operating mode is selected.
 I am serving this remotely (through the openWrt box and ser2net and my gateway router) so that someone who is 100 miles away can test it.
The system also includes a Nextion OLED for local control. The hardware looks like this.
 Lance |