This discussion is archived
3 Replies Latest reply: Apr 5, 2012 5:27 AM by Abhijit Dutta RSS

How to use 'html' in ADF using JS

928669 Newbie
Currently Being Moderated
Hi experts

I am using JDeveloper 11.1.1.5.0

I have a requirement where i have to show a diagram in HTML in jsff page.

As of now i tried to do this in two ways but both of these are not working.

1. HTML popup from page
     <af:resource type="javascript">
        function popitup(url) {
            newwindow = window.open(url, 'name', 'height=200,width=150');
            if (window.focus) {
                newwindow.focus()
            }
            return false;
        }
     </af:resource>
     <af:panelFormLayout maxColumns="2" rows="1" fieldWidth="60%"
                              labelWidth="40%" id="pfl2">
            <af:commandLink text="#{Ltv_en.LBL_VIEW_TREE}" rendered="true"
                            action="return popitup('ltv_tree.html')" id="cl1">View</af:commandLink>
     </af:panelFormLayout>
2. Using inlineframe
       <af:resource type="javascript">
          function loadHandler(event) {
              alert("load");
          }
        </af:resource>
        <af:inlineFrame source="ltv_tree.html"
                        shortDesc="#{Ltv_en.LBL_LTV_TREE}" id="if1">
          <af:clientListener type="inlineFrameLoad" method="loadHandler"/>
        </af:inlineFrame>
The file "ltv_tree.html" is in same folder as of jsff page.

Please help

Thanks you

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points