I am working on a Javascript-based webapp that uses an ArcGIS map service, which has several attribute columns containing URLs to photos. The user will be able to open photos by clicking on a link in the infoWindow, accessed with an IdentifyTask. I would like to use a variable in the placeholder. My problem is I can't find a way to pass a string variable into the placeholder position. Below is an example:
In my code, I have onclick=\"javascript:showPicture('${PrePic1} where HTTP is the name of a column containing photo links.
I would like to use a variable, such as 'testString' so that I may vary the attribute in the placeholder (for instance, PrePic2, PrePic3 etc..)
I have tried setting a var to just 'PrePic1" and placing this in the brackets, and have tried '${PrePic1}' (with and without escape characters)..but these attempts didn't work..
any ideas? I hope I am explaining the problem well // Jason