Quantcast
Channel: Forums - ArcGIS for Desktop - General
Viewing all articles
Browse latest Browse all 2565

How do i get the HTML Popup Tool to use images on a server?

$
0
0
I have images on a server that are linked to the features in the map using "Attachment Manager". I can get the background images that are static to link up for example in this part of the code:

<html>
<xsl:variable name="nameCol"/>
<body text="#000000" link="#0000FF" vlink="#6a5acd" alink="#6a5acd" background="http://ims.wsgs.uwyo.edu/ImageryFile...Background.jpg">
<table border="2" width="400" cellpadding="5" cellspacing="0" bordercolor="#827B60">
<tr style="text-align:center;font-weight:bold;background:{$headerRowColor}">
<td>
<xsl:value-of select="FieldsDoc/Title" />
</td>
</tr>
<xsl:apply-templates select="FieldsDoc/Attachments" />
<tr>
<td>
<table style="font-family:Arial;font-size:12px;text-align:center;width:100%;border-spacing:0px; padding:3px 3px 3px 3px">
<xsl:choose>
<xsl:when test="FieldsDoc/Fields/Field/FieldName">
<xsl:apply-templates select="FieldsDoc/Fields/Field/FieldName[not(contains($ignoreFieldNames, concat(concat('|', text()), '|')))]/.." />
</xsl:when>
<xsl:otherwise>
<xsl:apply-templates select="FieldsDoc/Fields/Field" />
</xsl:otherwise>
</xsl:choose>
</table>
</td>
</tr>
</table>

<footer>
<p align="center" style="margin:0px">
<a href="http://www.wsgs.uwyo.edu/" target="_blank" title="WSGS">
<img alt="WSGS" height="42" src="http://ims.wsgs.uwyo.edu/ImageryFile...ments/WSGS.jpg" width="200"/>
</a>
</p>
<p align="center" style="margin:0px">
<a href="http://geology.uwyo.edu/" target="_blank" title="Geology &amp; Geophysics">
<img alt="UW-GG" height="38" src="http://ims.wsgs.uwyo.edu/ImageryFile...ments/UWYO.jpg" width="200"/>
</a>
</p>
</footer>
</body>
</html>

But when it gets to the Attachment part of the code it is looking for the images in temp files on my hard drive. Here is the part of that code:

<xsl:template match="Attachments">
<xsl:variable name="imageCount" select="count(Attachment/ContentType[contains(., 'image')])"/>
<xsl:variable name="attachmentCount" select="count(Attachment)"/>
<tr bgcolor="#C9C299">
<td>
<table style="font-family:Arial,Verdana,Times;font-size:12px;text-align:center;width:100%;border-spacing:0px; padding:3px 3px 3px 3px">
<xsl:variable name="imageSrc" select="Attachment/ContentType[contains(., 'image')]/../FilePath"/>
<xsl:if test="$imageSrc">
<tr align="center">
<td>
<a target="_blank" href="{$imageSrc}">
<img src="{$imageSrc}" width="425px" border="1"/>
</a>
</td>
</tr>
<tr align="center">
<td>




here is a link link to my .xls file:

https://docs.google.com/file/d/0B0on...it?usp=sharing

Viewing all articles
Browse latest Browse all 2565

Trending Articles