I have the following problem:
We had the following code in an html file <input type=text size=14 maxsize=12 value=%%Sum%%>
If we set the value 15 to the Sum-variable in the cbl-program, the html-source code in the browser would look like this: <input type=text size=14 maxsize=12 value= 15,00>
but in effect the browser would deprecate the leading spaces, showing 15,00 (aligned to the left) in the textbox.
Now, W3C html-standards dictate, that attributes values need to be enclosed by hyphen(?), as in: <input type="text" size="14" maxsize="12" value="%%Sum%%">
But now, using this format, the browser DOESN'T deprecate the leading spaces. Instead it treats the value as a string, thus showing the leading spaces followed by 15,00 in the textbox. The leading spaces are also aligned to the left, which makes the desired value of 15,00 show up in the middle of the textbox.
The Sum variable is of the pic ---.---.---,99 type. And the value is submitted to the html-file as a external-form. Do you guys have similar code? How have you resolved this issue? Do I really have to convert the numeric field to an alphanumeric one before sending it out?
Appreciating the help!
Raphael
#htmlvalueattributenumericvariable