473,326 Members | 2,813 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

Calculate length of input based on parent <TD>

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
5 2604

"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
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
' --------------------------------------------------------------------------------------
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

"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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Matt Adams | last post by:
I want to move the following <PRE> defintion to a css file: <TABLE><TR><TD><PRE>sample text</PRE></TD> <TD> not predefined font</TD></TR></TABLE> should be <TABLE><TR><TD class=aaa>sample...
2
by: bissatch | last post by:
Hi, I am trying to use JavaScript to write a table column on a web page. The code is as follows: <html> <head> <script> function displaycount() {
3
by: Henry Johnson | last post by:
Okay - I'm spinning my wheels on this one... can someone help me figure out how to programmatically populate a table cell as follows (from C# code-behind)? I've tried using a Literal control in the...
2
by: petereffect | last post by:
i have foll. code <tr> <a href="a1.shtml"> <td width='100%'> &nbsp;"+Testing+ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </td> </a>
5
by: mahesr | last post by:
I want to match some particular text between <tr>and </tr> or <td>and </td>.... in PHP. like below............ <table><tr> CATEGORY: <td><font face="Verdana" size="1" color="#A000A0"> Wedding...
4
George Lft
by: George Lft | last post by:
I'm new at building table. Mostly PHP programming . Now I can't seem to fix the size of my table row and column. Any idea? <h4>Two rows and three columns:</h4> <table border="1"> <tr> ...
1
by: test9991014 | last post by:
Hi folks, I've got something like this: <table> <tr> <td>1</td> <td align=center> <input type=text> </td>
7
by: Xiaoyan | last post by:
Hi,everyone: I have a problem now. I can't get the information between the <tr><td> and </td></tr>. for example: I use this regular expression can't get it, I don't know why....
4
by: harryusa | last post by:
I am trying to center 2 images concentrically which are z-indexed to lay on top of each other making an image with a border from another image that has a transparent center. I need the images to be...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.