By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
444,017 Members | 1,169 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 444,017 IT Pros & Developers. It's quick & easy.

Calculate length of input based on parent <TD>

P: n/a
Hi. I need dinamically calculate input text field based on parent static TD
before showing content of input. Please, advice.
Michael
Mar 14 '07 #1
Share this Question
Share on Google+
5 Replies


P: n/a

"Michael" <mi**************@intergraph.comwrote in message
news:%2****************@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?
Mar 14 '07 #2

P: n/a
Anthony Jones wrote on 14 mrt 2007 in
microsoft.public.inetserver.asp.general:
>
"Michael" <mi**************@intergraph.comwrote in message
news:%2****************@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)
Mar 14 '07 #3

P: n/a
' --------------------------------------------------------------------------------------
The sample here:

<td width="250">
<input type=text size=115 value=Rs("ItemName")>
</td>
<td width="100">
<input type=text size=50 value=Rs("ItemType")>
</td>

Every time i have different amount of <TD>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 <inputbased on width of parent <TD>
Thanks for respond

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

"Anthony Jones" <An*@yadayadayada.comwrote in message
news:eF**************@TK2MSFTNGP02.phx.gbl...
>
"Michael" <mi**************@intergraph.comwrote in message
news:%2****************@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?


Mar 15 '07 #4

P: n/a

"Michael" <mi**************@intergraph.comwrote in message
news:ON**************@TK2MSFTNGP02.phx.gbl...
>
' --------------------------------------------------------------------------
------------
The sample here:

<td width="250">
<input type=text size=115 value=Rs("ItemName")>
</td>
<td width="100">
<input type=text size=50 value=Rs("ItemType")>
</td>

Every time i have different amount of <TD>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 <inputbased on width of parent <TD>
Thanks for respond
Don't use size attribute (in fact don't use width attribute either)

<table style="table-layout:fixed">
<tr>
<td style="width:250px">
<input type=text style="width:100%" value=Rs("ItemName")>
</td>
<td style-"width:100px">
<input type=text style="width:100%" value=Rs("ItemType")>
</td>
</tr>
</table>

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" <An*@yadayadayada.comwrote in message
news:eF**************@TK2MSFTNGP02.phx.gbl...

"Michael" <mi**************@intergraph.comwrote in message
news:%2****************@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?


Mar 15 '07 #5

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

Michael Groysman

"Anthony Jones" <An*@yadayadayada.comwrote in message
news:%2***************@TK2MSFTNGP04.phx.gbl...
>
"Michael" <mi**************@intergraph.comwrote in message
news:ON**************@TK2MSFTNGP02.phx.gbl...
>>
' --------------------------------------------------------------------------
------------
>The sample here:

<td width="250">
<input type=text size=115 value=Rs("ItemName")>
</td>
<td width="100">
<input type=text size=50 value=Rs("ItemType")>
</td>

Every time i have different amount of <TD>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 <inputbased on width of parent <TD>
Thanks for respond

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

<table style="table-layout:fixed">
<tr>
<td style="width:250px">
<input type=text style="width:100%" value=Rs("ItemName")>
</td>
<td style-"width:100px">
<input type=text style="width:100%" value=Rs("ItemType")>
</td>
</tr>
</table>

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" <An*@yadayadayada.comwrote in message
news:eF**************@TK2MSFTNGP02.phx.gbl...
>
"Michael" <mi**************@intergraph.comwrote in message
news:%2****************@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?




Mar 15 '07 #6

This discussion thread is closed

Replies have been disabled for this discussion.