Thanks for your reply. I tried it, but all I got was a blank button. Reason
being, I need to have it bound to a cfgrid. It might be easier all around if I
post the page in question:
http://www.renovate.com.au/realestate/index.cfm
You'll see here that you get presented with a grid listing available
properties, and then when you click on one it populates the details panel below
- including pictures. What I was originally trying was the following:
<cfformitem type="html" width="100" height="100" bind="<p><a
href='javascript:;'
onclick='getURL(images/{propGrid.selectedItem.Image1},""_blank"")'><img
src='images/{propGrid.selectedItem.Image1}' width='100' height='100' hspace='2'
/></a></p>"></cfformitem>
The picture displays just fine, and it comes up as a clickable hotspot, but
when you click it nothing happens. Most annoying.
I tried modifying the code you gave me, and came up with:
<cfinput type="Image" name="Image1"
bind="images/{propGrid.selectedItem.Image1}"
onclick="getURL(bigPicture.cfm?image=1);">
This is what gave me the blank button. So did changing "bind" back to "src".
Bummer. :(
Any suggestions about what I'm doing wrong?