Why doesn't a UNC Link in Pop Up display image?

8630
16
12-10-2015 02:30 PM
JamesLabate
New Contributor II

The test link seems active - when I hover over the image icon in the pop up I get icon indicating a live link but if I click I get nothing.

I've tried customizing the pop up (Custom Button in 3.7 Pop Up Configuration Tool) by adding the image tag and also the medias option. We're using Flex Viewer 3.7.

We have a lot of security here - do the images need to be local on the server where ArcGIS foor Server resides?

Again, I also tried to set height , and width attributes in the pop up custom tab html code. I read somewhere the "type" attribute needs to = "Image" I thought the medias tool was taking care of that..

Has anyone had this issue?

Thanks,

Jim

16 Replies
RobertScheitlin__GISP
MVP Emeritus

Michael,

Can you give more details on what you are doing:

Now when I make this same call through the application it cuts off the portion of the URL to the specific file and generates the following error:
0 Kudos
MichaelVolz
Esteemed Contributor

Are you asking for more details on what the pop-up widget is supposed to hyperlink to?

Or are you asking for more details on how I am trying to troubleshoot what seems like a simple setup that is just not working through the Flex application?

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

Michael,

  You mention:

Now when I make this same call through the application it cuts off the portion of the URL to the specific file

I would like to see your configuration that you are using in your app to utilize the new virtual directory.

Is it the same as an earlier responce you made:

<b></b><a href='https://webservername/pics{Field_Name}' target='_blank'>View Feature</a> <br>

If so it looks like you forgot a / at the end of your hard coded url. Unlesss your field {Field_Name} contains that \chester.jpg as the field value.

0 Kudos
MichaelVolz
Esteemed Contributor

Robert:

I had the virtual directories setup properly, I was just hitting a feature that had no file associated with it.  Do you know what code is needed to inform the enduser that there is no item associated with a feature in the hyperlink location?

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

Michael,

  I would calculate the fields that have not data with a default image that informs them no data is available.

MichaelVolz
Esteemed Contributor

Thank you Robert.

I will pass that information on to the data steward as it sounds like the best way to solve the problem.

0 Kudos
RhettZufelt
MVP Frequent Contributor

Jim,

In response to your question above:

That said, would simply copying the images to a location on the server eliminate the need for a virtual directory? If the path field in my photo location point file is pointing to a local directory on the server would that be stable and reliable - and display an image in the pop-up?

Yes, if you have permissions, you can copy them to the folder that your flexviewer app resides and can access it through a url if you copy it to the correct location.

So, if my flexviewer resides in C:\inetpub\wwwroot\flexviewers\37\PublicWorks\ on Machine_B, and I make a folder named pics in there with my images (say chester.jpg for example), I can then link to them with a URL as such:

http://machine_B/flexviewers/37/publicworks/pics/chester.jpg .

This way there is no need for a virtual directory as you are actually putting a copy of the pics in the IIS directory itself.  However, if you have the permissions needed to create a new folder in the IIS directories, you probably also have the permission required to create the virtual directory.

Not the "best" way, but it does work,

R_