473,588 Members | 2,452 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 2620

"Michael" <mi************ **@intergraph.c omwrote in message
news:%2******** ********@TK2MSF TNGP04.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.publi c.inetserver.as p.general:
>
"Michael" <mi************ **@intergraph.c omwrote in message
news:%2******** ********@TK2MSF TNGP04.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("ItemN ame")>
</td>
<td width="100">
<input type=text size=50 value=Rs("ItemT ype")>
</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*@yadayadaya da.comwrote in message
news:eF******** ******@TK2MSFTN GP02.phx.gbl...
>
"Michael" <mi************ **@intergraph.c omwrote in message
news:%2******** ********@TK2MSF TNGP04.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.c omwrote in message
news:ON******** ******@TK2MSFTN GP02.phx.gbl...
>
' --------------------------------------------------------------------------
------------
The sample here:

<td width="250">
<input type=text size=115 value=Rs("ItemN ame")>
</td>
<td width="100">
<input type=text size=50 value=Rs("ItemT ype")>
</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:25 0px">
<input type=text style="width:10 0%" value=Rs("ItemN ame")>
</td>
<td style-"width:100p x">
<input type=text style="width:10 0%" value=Rs("ItemT ype")>
</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*@yadayadaya da.comwrote in message
news:eF******** ******@TK2MSFTN GP02.phx.gbl...

"Michael" <mi************ **@intergraph.c omwrote in message
news:%2******** ********@TK2MSF TNGP04.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*@yadayadaya da.comwrote in message
news:%2******** *******@TK2MSFT NGP04.phx.gbl.. .
>
"Michael" <mi************ **@intergraph.c omwrote in message
news:ON******** ******@TK2MSFTN GP02.phx.gbl...
>>
' --------------------------------------------------------------------------
------------
>The sample here:

<td width="250">
<input type=text size=115 value=Rs("ItemN ame")>
</td>
<td width="100">
<input type=text size=50 value=Rs("ItemT ype")>
</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:25 0px">
<input type=text style="width:10 0%" value=Rs("ItemN ame")>
</td>
<td style-"width:100p x">
<input type=text style="width:10 0%" value=Rs("ItemT ype")>
</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*@yadayadaya da.comwrote in message
news:eF******* *******@TK2MSFT NGP02.phx.gbl.. .
>
"Michael" <mi************ **@intergraph.c omwrote in message
news:%2******** ********@TK2MSF TNGP04.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
8607
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 text</TD> <TD> not predefined font</TD></TR></TABLE>
2
5758
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
5435
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 TableCell, a HyperLink control, and an Image, but I'm not getting the results I want. Here's the source of what I'm after (retrieved by viewing the source of a page I'm trying to emulate): <td><a...
2
2672
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
2931
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 Accessories
4
5249
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> <td>10000000000000</td> <td>200</td> <td>300</td> </tr> <tr>
1
5497
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
2776
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. $test=~/<tr><td>(.*)<\/td><\/td>(.*)<\/td><\/tr>/ms; <tr><td>station</td> <td>station number/identification, see chart above: <br> B = GoMoos buoy B location<br> S = New Scantum at the southern edge Jefferys Ledge</td></tr>.
4
5274
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 horizonally and vertically centered within a <TD> </TD> area. No matter what I do the two image just present one above the other, albeit centered, NOT on top of each other. I originally did the entire page layout in TABLES until I found out I.E. 7...
0
8357
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
7987
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
6634
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
5729
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5398
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
3847
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
3887
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2372
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1459
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.