You are here: Re: Pondering a confusing MaxLength attribute behavior « HTML « IT news, forums, messages
Re: Pondering a confusing MaxLength attribute behavior

Posted by clintonG on 11/17/30 11:29

"Chris Beall" <Chris_Beall@prodigy.net> wrote in message
news:ETf4f.981$oi4.674@newssvr19.news.prodigy.com...
> clintonG wrote:
>> Hmmm... I seem to have lost all understanding of how some HTML elements
>> function.
>> Example...
>>
>> <textarea multiline="2" maxlength="2"></textarea>
>> <br />
>> <input maxlength="2" />
>>
>> Why does the textarea not prevent entering more characters than its
>> maxlength value the same way the input element will?
>>
>> <%= Clinton Gallagher
> Clinton,
>
> See http://www.w3.org/TR/html401/interact/forms.html#edef-TEXTAREA
>
> multiline and maxlength are not attributes of the textarea element.
>
> See http://www.w3.org/TR/html401/index/attributes.html
>
> multiline is not an HTML attribute at all.
>
> Perhaps you are thinking of some other language?
>
> Chris Beall

I've been deep into the mire of using Visual Studio to learn C# and the .NET
Framework. The control attributes used by Visual Studio have different names
but render as HTML elements after the page is compiled. I've been at this a
long time and have coded for years using HomeSite but I realized I've simply
lost touch with some of the finer points of HTML as expressed by attributes
which certain elements support.

I don't know why Microsoft felt compelled to use different attribute names
in their server-side controls. It can occassionally become very confusing as
this topic confirms.

I don't think I've ever come to terms with why an input element (ASP.NET
Textbox control) can limit the number of characters entered while an
textarea (ASP.NET Textbox control which supports MaxLength property)
requires the use of script. Thank you for providing the reference to W3C
Chris.

<%= Clinton Gallagher

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация