Skip to Main Content

Java Development Tools

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

document.getElementById not working

1004526Sep 12 2013 — edited Sep 12 2013

Hello,

I am using jdev 11.1.1.6

I have this block of code, which is displaying a list.

On click on the row, I am displaying Test.

    <af:popup id="dc_p1" contentDelivery="lazyUncached">

                <af:panelGroupLayout id="dc_pgl9">

                                  <trh:tableLayout id="dc_tl1">

                                   <af:iterator value="#{pageFlowScope.Bean.List}

                                                id="dc_i1" >

                                     <trh:rowLayout id="dc_rl3" onclick="function()" >

                                      <trh:cellFormat id="dc_cf12"

                                                      styleClass="navPageHyperLink">

                                       <af:outputText value="#{temp.value}"

                                                      id="dc_ot8"/>

                                      </trh:cellFormat>

                                      </trh:cellFormat>

                                    </trh:rowLayout>

                                    </af:iterator>

                                  </trh:tableLayout>

            </af:panelGroupLayout>

        </af:panelWindow>

    </af:popup>

            function function(){

        alert("Test");

            }

I want to get value of particular row,

I tried

document.getElementById('dc_ot8')

document.getElementById('dc_p1:dc_pgl9:dc_tl1:dc_i1:dc_rl3:dc_ot8')

but this is not working

This post has been answered by Frank Nimphius-Oracle on Sep 12 2013
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 10 2013
Added on Sep 12 2013
3 comments
864 views