Select to view content in your preferred language

window popup link

1478
2
10-07-2014 06:02 AM
NatashaManzuiga
Regular Contributor

Hi I wish I could open a Pop Up Window with html code to add a disclaimer from a button inside widget I created.

It should look like what happen when I click a button you can add from HeaderControllerWidget.mxml....configuring the xml file...how can I use it?

Thanks

Naty

<links>
    <link>
        <content>
            <![CDATA[
                  <p align='center'>
                      <img src='assets/images/globe.png'/>
                      <br/>
                      <br/>
                      <font size="+2"><b><a href="http://links.esri.com/flexviewer" target='_blank'>ArcGIS Viewer for Flex</a></b></font>
                  </p>
             ]]>          
        </content>
    </link>
  <link label="Privacy Statement" url="dpo.pdf"/>
</links>
0 Kudos
2 Replies
RobertScheitlin__GISP
MVP Emeritus

Naty,

  If you look at the HeaderController Widget code you will see that the about link launches and uses the HTMLPopup.mxml. So all your widgets button would need to do is something like this:

import com.esri.viewer.components.HTMLPopup;

HTMLPopup.show("Your HTML Content",

     "Close",

     "300",

     "500");

NatashaManzuiga
Regular Contributor

Thanks Robert....This fixed my problem.

0 Kudos