Hidden Element

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • rohit.d.agarwal@gmail.com

    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="qtyPlanFo rm" property="statu s" styleId="stat01 " />


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


    <html:hidden name="qtyPlanFo rm" property="posmI d" value='<%="" +
    posmVO.getId(). intValue() %>' styleId='<%="pi d" + i + "" + j%>'/>


    When I do a document.getEle mentById() 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


  • Thomas 'PointedEars' Lahn

    #2
    Re: Hidden Element

    rohit.d.agarwal @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="qtyPlanFo rm" property="statu s" styleId="stat01 " />
    >
    Type B) the id is generated based on the for() loop variable (see
    below)
    >
    <html:hidden name="qtyPlanFo rm" property="posmI d" value='<%="" +
    posmVO.getId(). intValue() %>' styleId='<%="pi d" + i + "" + j%>'/>
    >
    When I do a document.getEle mentById() 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

    Comment

    Working...