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>",
});
Solved! Go to Solution.
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.
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.
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.
Robert,
here is the table with complete URL.
Satya,
When I enter this url in a browser the host anme can not be resolved.
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.
Hi Ricky,
Solved the Issue.
Thanks for your help.
Regds,
satya
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)