Calculate length of input based on parent <TD>

Calculate length of input based on parent <TD>

am 14.03.2007 07:41:34 von Michael

Hi. I need dinamically calculate input text field based on parent static TD
before showing content of input. Please, advice.
Michael

Re: Calculate length of input based on parent <TD>

am 14.03.2007 12:35:13 von Anthony Jones

"Michael" wrote in message
news:%23$aZpOgZHHA.4668@TK2MSFTNGP04.phx.gbl...
> Hi. I need dinamically calculate input text field based on parent static
TD
> before showing content of input. Please, advice.
> Michael
>
>

In what way is the TD 'static'?
What units do you want the length value to be in?

It usually best to describe your intentions along with your question. That
way you stand a better chance of someone giving an better approach overall
to your problem. So why to do you want to calculate the length and what
exactly do you mean by length anyway?

Re: Calculate length of input based on parent <TD>

am 14.03.2007 15:11:17 von exjxw.hannivoort

Anthony Jones wrote on 14 mrt 2007 in
microsoft.public.inetserver.asp.general:

>
> "Michael" wrote in message
> news:%23$aZpOgZHHA.4668@TK2MSFTNGP04.phx.gbl...
>> Hi. I need dinamically calculate input text field based on parent
>> static
> TD
>> before showing content of input. Please, advice.
>> Michael
>>
>>
>
> In what way is the TD 'static'?
> What units do you want the length value to be in?
>
> It usually best to describe your intentions along with your question.
> That way you stand a better chance of someone giving an better
> approach overall to your problem. So why to do you want to calculate
> the length and what exactly do you mean by length anyway?

Anyway wrong NG. The problem seems 100% clientside.


--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)

Re: Calculate length of input based on parent <TD>

am 15.03.2007 10:12:43 von Michael

' ------------------------------------------------------------ --------------------------
The sample here:








Every time i have different amount of s for display and every time i
make first width of TD and after accordingly size of input. I would like to
calculate dinamicaly size of based on width of parent
Thanks for respond

' ------------------------------------------------------------ --------------------------

"Anthony Jones" wrote in message
news:eFiFWziZHHA.5080@TK2MSFTNGP02.phx.gbl...
>
> "Michael" wrote in message
> news:%23$aZpOgZHHA.4668@TK2MSFTNGP04.phx.gbl...
>> Hi. I need dinamically calculate input text field based on parent static
> TD
>> before showing content of input. Please, advice.
>> Michael
>>
>>
>
> In what way is the TD 'static'?
> What units do you want the length value to be in?
>
> It usually best to describe your intentions along with your question.
> That
> way you stand a better chance of someone giving an better approach overall
> to your problem. So why to do you want to calculate the length and what
> exactly do you mean by length anyway?
>
>

Re: Calculate length of input based on parent <TD>

am 15.03.2007 11:23:33 von Anthony Jones

"Michael" wrote in message
news:ONlgsHuZHHA.4420@TK2MSFTNGP02.phx.gbl...
>
' ------------------------------------------------------------ --------------
------------
> The sample here:
>
>
>
>
>
>
>
>
> Every time i have different amount of s for display and every time i
> make first width of TD and after accordingly size of input. I would like
to
> calculate dinamicaly size of based on width of parent
> Thanks for respond

Don't use size attribute (in fact don't use width attribute either)












table-layout:fixed indicates that your TD widths should be honored. The
input widths of 100% indicate that it should take up all the available space
within the TD.


>
>
' ------------------------------------------------------------ --------------
------------
>
> "Anthony Jones" wrote in message
> news:eFiFWziZHHA.5080@TK2MSFTNGP02.phx.gbl...
> >
> > "Michael" wrote in message
> > news:%23$aZpOgZHHA.4668@TK2MSFTNGP04.phx.gbl...
> >> Hi. I need dinamically calculate input text field based on parent
static
> > TD
> >> before showing content of input. Please, advice.
> >> Michael
> >>
> >>
> >
> > In what way is the TD 'static'?
> > What units do you want the length value to be in?
> >
> > It usually best to describe your intentions along with your question.
> > That
> > way you stand a better chance of someone giving an better approach
overall
> > to your problem. So why to do you want to calculate the length and
what
> > exactly do you mean by length anyway?
> >
> >
>
>

Re: Calculate length of input based on parent <TD>

am 15.03.2007 12:10:01 von Michael

Thank you very much , Antony. Your answer is great and helpful. Thanks a lot

Michael Groysman

"Anthony Jones" wrote in message
news:%23dMQ9vuZHHA.808@TK2MSFTNGP04.phx.gbl...
>
> "Michael" wrote in message
> news:ONlgsHuZHHA.4420@TK2MSFTNGP02.phx.gbl...
>>
> ' ------------------------------------------------------------ --------------
> ------------
>> The sample here:
>>
>>
>>
>>
>>
>>
>>
>>
>> Every time i have different amount of s for display and every time i
>> make first width of TD and after accordingly size of input. I would like
> to
>> calculate dinamicaly size of based on width of parent
>> Thanks for respond
>
> Don't use size attribute (in fact don't use width attribute either)
>
>


>
>
>
>
>

>
>

>
>

>
> table-layout:fixed indicates that your TD widths should be honored. The
> input widths of 100% indicate that it should take up all the available
> space
> within the TD.
>
>
>>
>>
> ' ------------------------------------------------------------ --------------
> ------------
>>
>> "Anthony Jones" wrote in message
>> news:eFiFWziZHHA.5080@TK2MSFTNGP02.phx.gbl...
>> >
>> > "Michael" wrote in message
>> > news:%23$aZpOgZHHA.4668@TK2MSFTNGP04.phx.gbl...
>> >> Hi. I need dinamically calculate input text field based on parent
> static
>> > TD
>> >> before showing content of input. Please, advice.
>> >> Michael
>> >>
>> >>
>> >
>> > In what way is the TD 'static'?
>> > What units do you want the length value to be in?
>> >
>> > It usually best to describe your intentions along with your question.
>> > That
>> > way you stand a better chance of someone giving an better approach
> overall
>> > to your problem. So why to do you want to calculate the length and
> what
>> > exactly do you mean by length anyway?
>> >
>> >
>>
>>
>
>