473,480 Members | 2,172 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Hidden Element

Hi All,

I have two types of hidden elements on my form
Type A) the id of the element is static (see below)
<html:hidden name="qtyPlanForm" property="status" styleId="stat01" />
Type B) the id is generated based on the for() loop variable (see
below)
<html:hidden name="qtyPlanForm" property="posmId" value='<%="" +
posmVO.getId().intValue() %>' styleId='<%="pid" + i + "" + j%>'/>
When I do a document.getElementById() for Type A hidden element, I
get
an object, however if I try the same for Type B hidden element I get
null.
Please advise in case I am doing something incorrectly
- RoHiT
Jun 27 '08 #1
1 1299
ro*************@gmail.com wrote:
I have two types of hidden elements on my form

Type A) the id of the element is static (see below)

<html:hidden name="qtyPlanForm" property="status" styleId="stat01" />

Type B) the id is generated based on the for() loop variable (see
below)

<html:hidden name="qtyPlanForm" property="posmId" value='<%="" +
posmVO.getId().intValue() %>' styleId='<%="pid" + i + "" + j%>'/>

When I do a document.getElementById() for Type A hidden element, I
get an object, however if I try the same for Type B hidden element
I get null.

Please advise in case I am doing something incorrectly
You have posted server-side code for a client-side problem.
Analyzing what your server-side code actually generates for the
client is going to help you in finding your other mistake.
PointedEars
--
realism: HTML 4.01 Strict
evangelism: XHTML 1.0 Strict
madness: XHTML 1.1 as application/xhtml+xml
-- Bjoern Hoehrmann
Jun 27 '08 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
6735
by: Eduard Dewolf | last post by:
Hi, Im have been changing my site to make it HTML 4.01 compliant As I should, I wrapped all INPUT tags in blocks I wrapped the not visible INPUT type HIDDEN tags in first PRE, later H6 tags...
0
2710
by: yurps | last post by:
Hello here is my html, if you click the missing image in the first column on the left, the div is shown, when clicked again the div disappears...but the bottom border disappears as well...Is there...
7
2705
by: Bonnett | last post by:
I have a piece of hidden text that the user can show/hide by clicking on a link, the problem I have is that I would like the text to appear when the page is printed. I've used the @media print in...
6
2976
by: Omar | last post by:
Hi, In a JSP I have the next: .... codigo = "<select name='" + nombre + "'>\n<option selected value='default'>Escoge</option><option value='todos'>Todos</option>"; if (miRS != null) while...
10
3087
by: Mark McLellan | last post by:
Dear all Following the oft-repeated advice here and ciwas I have made my site nearly 4.01 strict (working on it). There are some items on which I would appreciate your advice: 1. Hidden...
2
2176
by: Bill Steele | last post by:
I want to have a window pop up with a form. When the form is submitted, it needs to pass along the URL of the original window. If find on th web eight gazillion descriptions of how to pass data...
11
7388
by: newbie | last post by:
i have a form in which a hidden field (initial value as '0', and my javascript set it to '1' when an event is trigged). In the same form, i have a reset field. But I realized that the hidden field...
4
2841
by: zzpat | last post by:
I have a box element that uses overflow: hidden and I want a link which at the bottom of the element to be visible. I can't make the link visible. Obviously I'm having problems so I was...
4
4479
by: vershner | last post by:
HI there, is it possible to make an element hidden, then make it visible again in the same function? I have a number of elements, only one of which should be visible at any time. The users can...
0
7049
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,...
0
7052
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,...
1
6744
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...
1
4790
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...
0
4488
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...
0
2989
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1304
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 ...
1
565
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
188
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...

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.