I do not know much about javascript (let alone php), so I will need a little bit more than a lead to help me with this.
What I would like is to be able to read a word (or in this case a real number) from a simple flat text file (or like the old .ini files), or even from a spreadsheet, with the following sort of data -
Expand|Select|Wrap|Line Numbers
- a1=27.99
- a2=19.99
- a3=53.49
- c23=8.25
- f217=149.99
- where the first bit of the line is an identifier, and the second bit is the value needed. (I don't care what delimits the identifier).
Then in the html file, at the position it is needed, have an "insert the value of a3: here" type of statement.
This must have been done before, but I have spent 2 days searching for a similar idea, but to no avail.
My original idea was to have a numbers.js file containing -
Expand|Select|Wrap|Line Numbers
- var a1=27.99
- var a2=19.99
- var a3=53.49
- var c23=8.25
- var f217=149.99
Then in the html file have a -
Expand|Select|Wrap|Line Numbers
- <script type="text/javascript" src="numbers.js">
- document.write (a1)
- </script>
Can anyone help me please?