PDF in Robert's Splash Page

2399
6
Jump to solution
09-12-2012 12:09 PM
JeffreyUtter
Occasional Contributor
I've modified Robert's Splash page to include 4 tabs, one of which is a "How To Use".
I've created a separate PDF on the subject and having trouble coding it so that when the User clicks on the words, a new window opens up with PDF.
Here is my code so far.
Thanks.




<?xml version="1.0" ?>
<configuration>
    <!--
        Refer to the doc below for valid HTML tags that can be used for the content
        http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flashx/textLayout/conversion/Text...
    -->
    <width>455</width>
    <height>600</height>
    <contents>
     <content tabname="Main">
         <![CDATA[<p align='center'>
             <img src='assets/images/Main.jpg' width='300' />
         </p>
         <p>
             <font size="14"><b>Welcome to Great Bear Petroeum Operating LLC.</b></font>
         </p>
         <p>
             This web mapping application was developed by Jeffrey Utter GISP, IT/GIS/Database Manager for Great Bear, utilizing ESRI's ArcGIS FlexViewer version 3.0.
         </p>
         <p>
             More information at links below:
         </p>
         <textformat blockindent="20">
             <p>
                 * Built with <a href="http://help.arcgis.com/en/webapps/flexviewer/" target='_blank'><font color="#FFFFFF"><b>ArcGIS Viewer for Flex</b></font></a>
                 <br>
                 * Based on <a href="http://help.arcgis.com/en/webapi/flex/" target='_blank'><font color="#FFFFFF"><b>ArcGIS API for Flex</b></font></a>
             </p>
         </textformat>
         <br>
         <p>
             <a href="http://www.esri.com/legal/pdfs/mla_e204_e300/english.pdf" target='_blank'><font color="#FFFFFF">(c) Copyright 2010 Esri</font></a>. All rights reserved.
         </p>
        ]]>
     </content>
    
      <content tabname="How To Use">
         <![CDATA[<p align='center'>
             <img src='assets/images/HowToUse.jpg' width='300' />
         </p>
         <p>
             <font size="14"><b>Please click on the PDF link below for instructions on how to use this aaplication.</b></font>
         </p>
         <p> <a href="How To Use.pdf">How To Use</a>
            
         </p>
        
        ]]>
     </content>
    
    
     <content tabname="About Us">
         <![CDATA[<p align='center'>
             <img src='assets/images/AboutUs.jpg' width='300'/>
         </p>
         <p>
             <font size="16"><b>About the ArcGIS Viewer for Flex.</b></font>
         </p>
         <p>
             Founded in 2010, by Ed Duncan, CEO and President, and Karen Bryant Duncan, Vice President-Corporate, General Counsel & Secretary have estiblished themselves as pioneers in frackal drilling in Alaska. They are currently focusing in on the rich oil and gas shale in the North Slope, approximately 20 miles South of Deadhorse.
         </p>
        
        
         <p>
            The oil and gas industry is critical to Alaska, providing approximately 90% of State revenue. With the North Slopes produe Bay being the largest oil field in the U.S., Great Bear is targeting the Shublick, Kinggak and HRZ/Hue for a successful unconventional resource. 
           
         </p>
        ]]>
     </content>
    
      <content tabname="Contact">
         <![CDATA[<p align='center'>
             <img src='assets/images/Contact.jpg' width='300'/>
         </p>
         <p>
             <font size="12"><b>Contacting Us</b></font>
         </p>
         <p> We are located at 601 W. 5th Ave., Suite 505, Anchorage, AK 99501   907-868-8070</p>
          <p>
             You may email us at Great Bear:
         </p>
         <a href = "mailto:jeff@greatbearpetro.com"><img src='assets/images/Mail.png' /></a>
        
        
    
        ]]>
     </content>
    </contents>
    <buttons>
     <button label="Agree" action="close" url="" />
     <button label="Disagree" action="redirect" url="http://mysite/noaccess.htm" />
     <button label="Home" action="link" url="http://mysite/home.htm" />
    </buttons>
    <dontshowlabel>Don't show again</dontshowlabel>
    <disabledontshowoption>false</disabledontshowoption>
</configuration>
Tags (2)
0 Kudos
1 Solution

Accepted Solutions
JeffreyUtter
Occasional Contributor
Got it, THANK  YOU!

View solution in original post

0 Kudos
6 Replies
RobertScheitlin__GISP
MVP Emeritus
Jeff,

   Try using a complete url for the How To Use.pdf.
0 Kudos
JeffreyUtter
Occasional Contributor
I'm getting closer, but got 404 - File or directory not found.
<p> <a href= "http://flex.greatbearpetro.com/inetpub/wwwroot/Flexviewers/How To Use Flex.pdf">How To Use</a>
            
         </p>
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Jeff,

   It should be:

<p> <a href= "http://flex.greatbearpetro.com/How To Use Flex.pdf">How To Use</a>
             
         </p>       


Don't forget to click the Mark as answer check on this post and to click the top arrow (promote).
Follow the steps as shown in the below graphic:

0 Kudos
JeffreyUtter
Occasional Contributor
OK, it works, and many thanks....... but how can it open a new window, instead of the same window?
0 Kudos
AnthonyGiles
Frequent Contributor
Jeffrey,

Put target="_blank" in your anchor tag I.e:

<a href= "http://flex.greatbearpetro.com/How To Use Flex.pdf" target="_blank">How To Use</a>
            
Regards

Anthony
0 Kudos
JeffreyUtter
Occasional Contributor
Got it, THANK  YOU!
0 Kudos