POP UP PHOTOS

3196
6
Jump to solution
06-30-2015 01:49 AM
SatyanarayanaNarmala
New Contributor III

Hi,

i am trying to display photos from url . i am getting the following pop up. how can i get a full image.

var template = new PopupTemplate({

          title: "SWACHH TELANGANA APPLICANTS    <BR>",

          description: "<BR>BENEFICIARY ID: {beneficiary_id} <br> <br>BENEFICIARY NAME: {applicant_name} <br><br>FATHERS NAME: {fathername}<br><br> ADDRESS: {address} <br><br> CASTE: {caste} <br> <br> MOBILE: {mobile} <br><br> AADHAR NO:: {aadhar_number}<br><br> COMMUNICATION STATUS: {comm_status} <br><br>  PHOTO: <img src={applicant_photo}/> <br><br> SITE PHOTO : <img src={applicant_site_photo_path}/><br><br> STAGE : {stage}<br>",

        

      

        });

2 Solutions

Accepted Solutions
RobertScheitlin__GISP
MVP Emeritus

Satya,

   Does your "applicant_site_photo_path" have a full url containing a full qualified domain name including http or https? You can not use a file path string like c:\photos it needs to be a real url.

View solution in original post

RickeyFight
MVP Regular Contributor

Satya,

This is how I display a photo in a popup:

<a href=http://yourURL/cemetery/${Photo_loc} target='_blank'> <img src=${Photo_loc} WIDTH=150 HEIGHT=150></a>

I do not have the full url in my attributes. When you click the photo in the popup it opens a new tab with the photo in full size.

View solution in original post

6 Replies
RobertScheitlin__GISP
MVP Emeritus

Satya,

   Does your "applicant_site_photo_path" have a full url containing a full qualified domain name including http or https? You can not use a file path string like c:\photos it needs to be a real url.

SatyanarayanaNarmala
New Contributor III

Robert,

here is the table with complete URL.

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

Satya,

   When I enter this url in a browser the host anme can not be resolved.

http://swachhts.gov.in/photos_uploaded/bns1200021.jpg

RickeyFight
MVP Regular Contributor

Satya,

This is how I display a photo in a popup:

<a href=http://yourURL/cemetery/${Photo_loc} target='_blank'> <img src=${Photo_loc} WIDTH=150 HEIGHT=150></a>

I do not have the full url in my attributes. When you click the photo in the popup it opens a new tab with the photo in full size.

SatyanarayanaNarmala
New Contributor III

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

Oh,  I missed the fact that you did not have a $ in front of your attribute

<img src={applicant_site_photo_path}/>

Should be:

<img src=${applicant_site_photo_path}/>

(just to clarify for those that are looking at this latter and wonder what the issue was)