Select to view content in your preferred language

iframes and popups

883
1
06-29-2011 12:11 AM
simonmiles
Emerging Contributor
I require a bit of help with some code, I'm using the following to insert an iframe into a popup. However i cant seem to get it to pull through a web page.

  else if (result.layerName === 'PLANNING_APP'){
              var template = new esri.InfoTemplate("", "<b>Planning Application</b></br> <iframe src='http://www.rbwm.gov.uk/pam/view.jsp?ID=${REFVAL} width='100%' height='300'></iframe>'"); feature.setInfoTemplate(template);
    }

any ideas?
0 Kudos
1 Reply
HemingZhu
Frequent Contributor
I require a bit of help with some code, I'm using the following to insert an iframe into a popup. However i cant seem to get it to pull through a web page.  

else if (result.layerName === 'PLANNING_APP'){ 
var template = new esri.InfoTemplate("", "<b>Planning Application</b></br> <iframe src='http://www.rbwm.gov.uk/pam/view.jsp?ID=${REFVAL} width='100%' height='300'></iframe>'"); feature.setInfoTemplate(template); 


any ideas?


></iframe>'");
0 Kudos