473,796 Members | 2,512 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

runtime input boxes

omerbutt
638 Contributor
hi there i am working on an inventory rpoject and for that i have made a stock entry form which is pasted below,I have included this form in the main Add Stock page, having the following inputs to be saved
1.code no
2part no
3total replace no's--------->this is wot the ques is about
4auto
5type
6brand
7height
8product
9outer dia 1
10 outer dia2
11inner dia1
12 inner dia 2
13unit price
NOw the client has the business of AUTO FILTERS ,means WATER SEP FILTER,OIL SEPERATOR FILTER ETC. Ror each filter they have different qualities for which they have a "Replacemen t No". This means if he has a Mobile of Nokia6230 he has this mobile in 3 Manufacturers and 2 pieces/Manufacturers, i.e uk made, china made, hungary made e.t.c he will assign 1 "Code No" and 3 different "Replace no" to these 3 different makes while entering the stock,now the prob is that the total number of "Replace Nos" are not fixed there can be 1 "Replace No" for 1 part and on the other hand 5 "Rep Nos " for another part ,what i am doing/trying to do is that i am using a div with a selection menu in which i want to give a serial of nos from 1 to onwards and i am using the "onchange" in the "Select" tag which is calling a javascript function which enables the other divs for eg if i have selected "3" in the "Total Replace Nos" option then it shud call the javascript function which shud enable 3 input boxes to enter the 3 replace nos for the part :( isnt it lengthy ...if there is a better way todo this thing do temme and thanks for any help in advance the code for the form is given here :
Expand|Select|Wrap|Line Numbers
  1.       <%
  2.           dim DateStatus
  3.           DateStatus=now()
  4.       %>
  5.       <tr>
  6.        <td>
  7.       <table cellspacing="0" cellpadding="0" width="690" align="center" valign="top" bordercolor="#4C4A48" height="170">
  8.       <tr><td class="add"><div align="left">Code No:</div></td>
  9.            <td width="150" align="Center" valign="Center"><div align="left"><input name="code_no" type="text" size="25" style="width:194px; height:17px; font-size:11px; font-family:tahoma; border-style:solid; border-width:1px; border-color:#4C4A48; color:#8C8B89; background-color:#0A0501 "></div></td>
  10.                   <td class="add"><div align="left">Part No:</div></td>
  11.                   <td width="150" align="Center" valign="Center"><div align="left"><input name="cust_name" type="text" size="25" style="width:194px; height:17px; font-size:11px; font-family:tahoma; border-style:solid; border-width:1px; border-color:#4C4A48; color:#8C8B89; background-color:#0A0501 "></div></td>
  12.               </tr>
  13.               <tr>           
  14.                   <td class="add"><div align="left">Total Replace No's:</div></td>
  15.                   <td class="150" align="center" valign="middle">
  16.                   <div align="left">
  17.                   <SELECT name="t_rep" onChange="" style=" width:194px; height:17px; font-size:11px; font-family:tahoma; border-style:solid; border-width:1px; border-color:#8C8B89; color:#8C8B89; background-color:#0A0501 ">
  18.                       <OPTION value="none" selected="selected">Please Select Any Number</OPTION>
  19.                       <option value="1">1</option>
  20.                       <option value="2">2</option>
  21.                       <option value="3">3</option>
  22.                       <option value="4">4</option>
  23.                   </select>
  24.                   </div>
  25.                   </td>
  26.                   <td class="add"><div align="left">Auto:</div></td>
  27.                   <td width="150" align="Center" valign="Center"><div align="left"><input name="cust_add" type="text" size="25" style="width:194px; height:17px; font-size:11px; font-family:tahoma; border-style:solid; border-width:1px; border-color:#4C4A48; color:#8C8B89; background-color:#0A0501 "></div></td>
  28.               </tr>
  29.               <tr>
  30.                   <td class="add"><div align="left">Replace No:</div></td>
  31.                   <td width="150" align="Center" valign="Center"><div align="left"><input name="cust_add" type="text" size="25" style=" width:194px; height:17px; font-size:11px; font-family:tahoma; border-style:solid; border-width:1px; border-color:#8C8B89; color:#8C8B89; background-color:#0A0501 "></div></td>
  32.                   <td class="add"><div align="left">Outer Dia1:</div></td>
  33.                   <td width="150" align="Center" valign="Center"><div align="left"><input name="toc_fr" type="text" size="25" style="width:194px; height:17px; font-size:11px; font-family:tahoma; border-style:solid; border-width:1px; border-color:#4C4A48; color:#8C8B89; background-color:#0A0501 "></div></td>
  34.               </tr>
  35.               <tr>
  36.                   <td class="add"><div align="left">Type:</div></td>
  37.                   <td width="150" align="Center" valign="Center"><div align="left"><input name="cust_add" type="text" size="25" style="width:194px; height:17px; font-size:11px; font-family:tahoma; border-style:solid; border-width:1px; border-color:#4C4A48; color:#8C8B89; background-color:#0A0501 "></div></td>
  38.                   <td class="add"><div align="left">Outer Dia2:</div></td>
  39.                   <td width="150" align="Center" valign="Center"><div align="left"><input name="toc_fr" type="text" size="25" style="width:194px; height:17px; font-size:11px; font-family:tahoma; border-style:solid; border-width:1px; border-color:#4C4A48; color:#8C8B89; background-color:#0A0501 "></div></td>
  40.               </tr>                                 
  41.               <tr>
  42.                   <td class="add"><div align="left">Brand:</div></td>
  43.                   <td ="#346598" width="150" align="Center" valign="Center"><div align="left"><input name="caller" type="text" size="25" style="width:194px; height:17px; font-size:11px; font-family:tahoma; border-style:solid; border-width:1px; border-color:#4C4A48; color:#8C8B89; background-color:#0A0501 "></div></td>
  44.                   <td class="add"><div align="left">Inner Dia1:</div></td>
  45.                   <td width="150" align="Center" valign="Center"><div align="left"><input name="toc_to" type="text" size="25" style="width:194px; height:17px; font-size:11px; font-family:tahoma; border-style:solid; border-width:1px; border-color:#4C4A48; color:#8C8B89; background-color:#0A0501 "></div></td>
  46.               </tr>
  47.               <tr>
  48.                   <td class="add"><div align="left">Height:</div></td>
  49.                   <td ="#346598" width="150" align="Center" valign="Center"><div align="left"><input name="caller" type="text" size="25" style="width:194px; height:17px; font-size:11px; font-family:tahoma; border-style:solid; border-width:1px; border-color:#4C4A48; color:#8C8B89; background-color:#0A0501 "></div></td>
  50.                   <td class="add"><div align="left">Inner Dia2:</div></td>
  51.                   <td width="150" align="Center" valign="Center"><div align="left"><input name="toc_to" type="text" size="25" style="width:194px; height:17px; font-size:11px; font-family:tahoma; border-style:solid; border-width:1px; border-color:#4C4A48; color:#8C8B89; background-color:#0A0501 "></div></td>
  52.               </tr>
  53.               <tr>
  54.                   <td class="add"><div align="left">Product:</div></td>
  55.                   <td width="150" align="Center" valign="Center"><div align="left"><input name="cust_add" type="text" size="25" style=" width:194px; height:17px; font-size:11px; font-family:tahoma; border-style:solid; border-width:1px; border-color:#8C8B89; color:#8C8B89; background-color:#0A0501 "></div></td>
  56.                   <td class="add"><div align="left">Unit Price:</div></td>
  57.                   <td width="150" align="Center"><div align="left"><input name="tel_no" type="text" size="25" style="width:194px; height:17px; font-size:11px; font-family:tahoma; border-style:solid; border-width:1px; border-color:#4C4A48; color:#8C8B89; background-color:#0A0501 "></div></td>
  58.               </tr>
  59.           </table>   
  60.           </td>
  61.       </tr>
Nov 22 '07
10 1756
acoder
16,027 Recognized Expert Moderator MVP
I've merged this with your previous thread - keep this problem to one thread.

You will need to dynamically create the input boxes using document.create Element().
Nov 23 '07 #11

Sign in to post your reply or Sign up for a free account.

Similar topics

2
1977
by: Joey | last post by:
Say a customer inserts into a sql database field (NUMINSERTS) the number 6. On the following page, I want to build a table that displays 6 input boxes, since the customer said they wanted 6 text boxes. I will then insert the data from the 6 text boxes back into another sql database table. For example:
2
3075
by: reneeccwest | last post by:
Different user input boxes are automatically populated based on a value of the dropdown box. Can anyone help me on that?
3
5179
by: KathyB | last post by:
Hi, I'm trying to find a way to validate input text boxes where I don't know the names until the page is rendered. I've got 2 validate functions that fire with the onsubmit button of a "mini" form within the html document. When the Finish button is clicked, I need to check for any empty input boxes before loading the next aspx page...but it could be no boxes or five boxes, etc.? I've included my html output...if you have any ideas,...
3
4956
by: Lozette | last post by:
Hi all, I'm wondering if anyone else has noticed some odd behavious with IE6.0 colouring input boxes yellow (or any other colour!) unexpectedly? I am using IE6.0.2 on WinXP Pro. I had a bug report from my boss and some clients, complaining that they were seeing yellow text input boxes on our site (when the boxes *should* be styled grey with CSS). After some investigation I found
2
4732
by: Shabam | last post by:
I was told that dotnet generates classes for input tags like this: <span class="hello"><input type= "checkbox"></span> The problem here is, the "input" class is overriding the "hello" class. Ideally I wanted the html to be this way: <input type= "checkbox" class="hello"> However since dotnet insists on doing it the first way, it's not working for
5
15124
by: Nathan Bloom | last post by:
Hi, I have a secured database that runs fine on the computer the database is installed on. I have several workstations with access runtime installed that also need access to the database. Access runtime runs fine when accessing an unsecured version of the database. However once the database was secured it generates a runtime error after asking for the user and password and won't open. The shortcut to the secured database is: "path...
5
33092
by: kildareguy | last post by:
I am getting this error when running a module in Access 2002...anyone know what it is? and how to correct it?
3
2466
by: Rameshika | last post by:
Hi All How can I select a particular row in a datagrid.Where when the user double clicks the data in that row should appear in the corresponding text boxes in runtime And how can the user insert,delete and edit fields in a datagrid at runtime Please be kind enough to help me Thanks Rameshika
13
3031
by: amykimber | last post by:
Hi all, I know I'm doign something really daft, but I can't get this to work... I have a form with a bunch of inputs called ship_owner - why the ? Because I'm submitting this page though php and the put the data into an array in the post.... anywhat. I have a link <a href="javascript:change_class()" >Block mode</a> to
0
9673
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10452
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10221
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...
0
10003
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7546
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
5569
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4115
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
2
3730
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2924
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.