A user clicks to add a CD title from a cfquey list. My code works; the cd title is added. When the image is clicked, cfquery "add_one_cd.cfm" is run. The customer is not forced into another page to see that the cd title was added. That's the way I want it. I don't want another page to load.
I'd settle to force the user to click to remove the text box but it would look much better if the text box went away itself. This should not be an anoying popup. Doing this via the iframe would probably not look too good, and I don't want to show the iframe.
So, the trick is to do this after the user clicks the image.
Show me how.
<iframe name="brain" src="" width="0" height="0" marginwidth="0" marginheight="0" frameborder="0"></iframe>
<input type="image" src="/mail_order/i/add_to_order.gif" onClick="brain.location='add_one_cd.cfm?catalog_id=#area_id#&add_to_cart=1'">