5,838
edits
No edit summary |
No edit summary |
||
Line 62: | Line 62: | ||
* (both versions) Assume the dayfile.txt is read from a subfolder called 'data'. | * (both versions) Assume the dayfile.txt is read from a subfolder called 'data'. | ||
* (JS version only) Insert the table it generates into a HTML element with attribute ''id='tableData' '' | * (JS version only) Insert the table it generates into a HTML element with attribute ''id='tableData' '' | ||
* (both versions) Assume the date format in the dayfile is ''dd/mm/yy'' | * (both versions) Assume the date format in the dayfile is ''dd/mm/yy'' | ||
* (both versions) Assume the data in the dayfile is separated with a ''comma'' | * (both versions) Assume the data in the dayfile is separated with a ''comma'' | ||
Line 72: | Line 72: | ||
* (JS Version only) '''tableDiv''' - the HTML element ''id attribute'' on your webpage to insert the table into | * (JS Version only) '''tableDiv''' - the HTML element ''id attribute'' on your webpage to insert the table into | ||
* (both versions) '''field_delimiter''' - the symbol separating each of your fields in the dayfile.txt. For most people this is a '''comma''' but (if you use comma to separate integer and decimal parts of real numbers) it could be a semi-colon (''';''') or other symbol. | * (both versions) '''field_delimiter''' - the symbol separating each of your fields in the dayfile.txt. For most people this is a '''comma''' but (if you use comma to separate integer and decimal parts of real numbers) it could be a semi-colon (''';''') or other symbol. | ||
* (both versions) '''date_delimiter''' - the symbol separating your date format. | * (both versions) '''date_delimiter''' - the symbol separating your date format. In the UK this is '''/''' however in other countries it may be '''-''' | ||
Change as needed, save and test | Change as needed, save and test |
edits