Page 1 of 1
Text Area Size
Posted: Tue Jun 15, 2021 1:36 pm
by JohnR
One of the Text Area settings is Size, a Size of 0 is supposed to give you unlimited size,
but appears to stop at about 4092 characters. Any suggestions?
Re: Text Area Size
Posted: Tue Jun 15, 2021 2:29 pm
by BaconFries
I am sorry but this is not correct see the following reading from size:
https://developer.mozilla.org/en-US/doc ... input/text
size
The size attribute is a numeric value indicating how many characters wide the input field should be.
The value must be a number greater than zero, and the default value is 20. Since character widths vary, this may or may not be exact and should not be relied upon to be so; the resulting input may be narrower or wider than the specified number of characters, depending on the characters and the font (font settings in use).
This does not set a limit on how many characters the user can enter into the field. It only specifies approximately how many can be seen at a time.
To set an upper limit on the length of the input data, use the maxlength attribute.
Re: Text Area Size
Posted: Wed Jun 16, 2021 2:54 pm
by JohnR
My apologies, when I said SIZE I should have said MAX LENGTH.
It says that '0 = unlimited', but I have not found that to be the case.
It always stops at around 4092 characters.
Re: Text Area Size
Posted: Wed Jun 16, 2021 3:05 pm
by Pablo
Note that this is a standard HTML feature, so the functionality is implemented in the browser.
Different browsers may behave differently.
Re: Text Area Size
Posted: Wed Jun 16, 2021 3:46 pm
by BaconFries
As mentioned by Pablo this may simply be a browser restriction. You should also note that a textarea is generally only used in a form for a users input and I can't really imagine that they would ever have to write 4092 characters or unlimited as you wish. Also in my opinion (and that is all it is) using a textarea to be used for text (if that is what your after) with the ability to scroll with unlimited text within it would be tedious having to scroll and scroll just to read the contents would put me off reading. It might be better to break it up into several sections for easier reading.
Re: Text Area Size
Posted: Wed Jun 16, 2021 4:02 pm
by JohnR
It's not just straight reading, that would indeed be very tedious.
What I'm using the area for is a Family Tree. I have broken it into several smaller areas,
and also put a link to a pdf of the full file on the page.
Re: Text Area Size
Posted: Wed Jun 16, 2021 4:47 pm
by BaconFries
Reading from the following
Large Text Area you had already asked this. Did you try Pablo's suggestion? You could also try leaving it empty. A bit of Googling gave me this
https://www.geeksforgeeks.org/html-text ... attribute/ read from Attribute Value: number: But as mentioned it could be browser related and you will have to go with the method you are allowed already using.