I was using this script four four years and it worked until I changed my Page.

<TD Width="3%"><Span Style="Text-Transform: Uppercase"><INPUT TYPE="Text" Name="txtPosA" Size="2" MaxLength="2"></Span>

Does anyone know what change was made for why this script no longer works?

Tnanks in Advance

Bill Barber

Re: Capital Letters or Uppercase Letters by dlbjr

dlbjr
Wed Jun 16 20:36:33 CDT 2004

<INPUT TYPE="Text" Name="txtPosA" Style="Text-Transform: Uppercase" Size="2" MaxLength="2">

The style being applied in the span tag will not effect the style in the input tag.
Place the style inside the input tag.


'dlbjr

'Unambit from meager knowledge of inane others,engender uncharted sagacity.



Re: Capital Letters or Uppercase Letters by Roland

Roland
Wed Jun 16 20:39:57 CDT 2004

"Bill Barber" wrote in message
news:47F434A8-1E52-452C-AAF1-FF53824173F8@microsoft.com...
: I was using this script four four years and it worked until I changed my
Page.
:
: <TD Width="3%"><Span Style="Text-Transform: Uppercase"><INPUT
TYPE="Text" Name="txtPosA" Size="2" MaxLength="2"></Span>
:
: Does anyone know what change was made for why this script no longer works?

Well, it's not script. It's HTML with some inline CSS. However, I don't
see anything that shouldn't work.
What's it doing/not doing? Did you paste the correct content here?

--
Roland Hall
/* This information is distributed in the hope that it will be useful, but
without any warranty; without even the implied warranty of merchantability
or fitness for a particular purpose. */
Technet Script Center - http://www.microsoft.com/technet/scriptcenter/
WSH 5.6 Documentation - http://msdn.microsoft.com/downloads/list/webdev.asp
MSDN Library - http://msdn.microsoft.com/library/default.asp



Re: Capital Letters or Uppercase Letters by Michael

Michael
Wed Jun 16 21:31:51 CDT 2004

> Well, it's not script. It's HTML with some inline CSS. However, I
> don't see anything that shouldn't work.
> What's it doing/not doing? Did you paste the correct content here?

The OP's expectation is the text type into the text box will be
auto-converted into upper case, which is what happens when the style is
applied directly to the input element. The assumed behavior is that the
text-transform css attribute for the input element would be inherited from
its parent element. At least that's what the docs imply...

textTransform
http://msdn.microsoft.com/workshop/author/dhtml/reference/properties/texttransform.asp



--
Michael Harris
Microsoft.MVP.Scripting
Sammamish WA US


Re: Capital Letters or Uppercase Letters by Roland

Roland
Thu Jun 17 00:17:40 CDT 2004

"Michael Harris (MVP)" <mikhar at mvps dot org> wrote in message
news:eGh0ANBVEHA.3280@TK2MSFTNGP10.phx.gbl...
: > Well, it's not script. It's HTML with some inline CSS. However, I
: > don't see anything that shouldn't work.
: > What's it doing/not doing? Did you paste the correct content here?
:
: The OP's expectation is the text type into the text box will be
: auto-converted into upper case, which is what happens when the style is
: applied directly to the input element. The assumed behavior is that the
: text-transform css attribute for the input element would be inherited from
: its parent element. At least that's what the docs imply...
:
: textTransform
:
http://msdn.microsoft.com/workshop/author/dhtml/reference/properties/texttransform.asp

Ah, I guess inheritance isn't supported in IE?

It appears that IE doesn't inherit this property but NS6 and O4 do.
http://www.blooberry.com/indexdot/css/properties/text/texttrans.htm

I tested it in IE6, O7 and Moz1.6. I don't have NS. It only worked in
Opera out of those with inheritance. Looks like IE and Mozilla have screwed
the pooch, even though IE states it in their docs. Hmmm... I wonder if it
worked in an earlier version of IE, which I don't have.

Thanks for pointing that out Michael.

--
Roland Hall
/* This information is distributed in the hope that it will be useful, but
without any warranty; without even the implied warranty of merchantability
or fitness for a particular purpose. */
Technet Script Center - http://www.microsoft.com/technet/scriptcenter/
WSH 5.6 Documentation - http://msdn.microsoft.com/downloads/list/webdev.asp
MSDN Library - http://msdn.microsoft.com/library/default.asp




Re: Capital Letters or Uppercase Letters by Roland

Roland
Thu Jun 17 14:34:08 CDT 2004

"Roland Hall" wrote in message news:ODO8qpCVEHA.3380@TK2MSFTNGP11.phx.gbl...
: "Michael Harris (MVP)" <mikhar at mvps dot org> wrote in message
: news:eGh0ANBVEHA.3280@TK2MSFTNGP10.phx.gbl...
: : > Well, it's not script. It's HTML with some inline CSS. However, I
: : > don't see anything that shouldn't work.
: : > What's it doing/not doing? Did you paste the correct content here?
: :
: : The OP's expectation is the text type into the text box will be
: : auto-converted into upper case, which is what happens when the style is
: : applied directly to the input element. The assumed behavior is that the
: : text-transform css attribute for the input element would be inherited
from
: : its parent element. At least that's what the docs imply...
: :
: : textTransform
: :
:
http://msdn.microsoft.com/workshop/author/dhtml/reference/properties/texttransform.asp
:
: Ah, I guess inheritance isn't supported in IE?
:
: It appears that IE doesn't inherit this property but NS6 and O4 do.
: http://www.blooberry.com/indexdot/css/properties/text/texttrans.htm
:
: I tested it in IE6, O7 and Moz1.6. I don't have NS. It only worked in
: Opera out of those with inheritance. Looks like IE and Mozilla have
screwed
: the pooch, even though IE states it in their docs. Hmmm... I wonder if it
: worked in an earlier version of IE, which I don't have.
:
: Thanks for pointing that out Michael.

Just tested FireFox 0.9. It doesn't inherit either.

--
Roland Hall
/* This information is distributed in the hope that it will be useful, but
without any warranty; without even the implied warranty of merchantability
or fitness for a particular purpose. */
Technet Script Center - http://www.microsoft.com/technet/scriptcenter/
WSH 5.6 Documentation - http://msdn.microsoft.com/downloads/list/webdev.asp
MSDN Library - http://msdn.microsoft.com/library/default.asp