Hosting PDF's referenced in a JavaScript API application?

717
2
02-27-2014 02:13 PM
LucasCotner
New Contributor II
This may seem very basic, but I do not understand how to store and reference PDF's in ArcGIS Server:

Currently, my JavaScript application's pop-up content is hyperlinked very nicely to PDFs hosted locally on my machine in localhost. What I do not understand is where to put these PDF's once the application goes live and runs through our instance of ArcGIS Server?

Thanks in advance!
0 Kudos
2 Replies
JaniceBaird
Occasional Contributor II
Lucas,

We have our pdfs in a location that is either on the web server or somewhere accessible by the web server. So in my javascript application I have a help document that can be accessed by clicking a menu button which runs window.open(... location to help file ...).

For example the location to my help file is : http://skagitcounty.net/Apps/Maps/iMap/Help/SkagitCountyiMapHelp.pdf.

This is not exactly how I get to it because I use relative paths in my code and am opening an html file:

function displayHelp() {
    //    myWindow = window.open('Help/SkagitCountyiMapHelp.pdf', '', 'target=new');
    var myWindow;
    try {
        myWindow = window.open('/Departments/GIS/imaphelp.htm#', 'iMap Help', 'target=new, scrollbars=yes, toolbar=yes, resizable=yes');
    } catch (exp) {
        myWindow = window.open('/Departments/GIS/imaphelp.htm#', '', 'target=new, scrollbars=yes, toolbar=yes, resizable=yes');
    }
    myWindow.focus();
}


I hope this helps!
Janice.
0 Kudos
LucasCotner
New Contributor II
Janice,

Thanks for the help, I understand it now. Also, I looked at the Skagit Co iMap; that thing is sweet, nice work!

Luk
0 Kudos