Hi Tony,

Thanks for the tip. But I am dynamically changing the image via JS to
re-render the chart image, so I am basically setting myimage.dom.src =
'mycfc.cfc'

Is there no way to return an image like that?


-----Original Message-----
From: Tony Bentley [mailto:[email protected]] 
Sent: November-03-09 3:33 PM
To: cf-talk
Subject: Re: Return an image from a CFC directly to an img src tag


Return the image source dynamically. Get the source in your cfc, then invoke
the cfc's method and use the method call as your var.
<cfscript>
img = createObject("component","imagecfc");
</cfscript>
<cfoutput>
<img src="#img.getSource()#">
</cfoutput>





~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:327973
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to