Don't use HTMLCodeFormat, it will escape your < and >
Can you output just one row, and make sure that it does output "bla ksk
kak alkd sk skd <img src=/images/myimage.jpg> sjd ksd fksdf" and that it
is not escaped in the database.
You don't need HTMLCodeFormat to view it, just view the source. Make
sure that it outputs what it needs to output and that the whole thing is
not commented out, or other things to make it not display.
Try this code:
<!-- start here -->
<cfoutput query="getData" maxrows="1">
#myData#
</cfoutput>
<br /><br />
bla ksk kak alkd sk skd <img src=/images/myimage.jpg> sjd ksd fksdf
<!-- end here -->
This assumes that the first record for the getData query is "bla ksk kak
alkd sk skd <img src=/images/myimage.jpg> sjd ksd fksdf"
The code above should essentially display the same thing twice (with
whitespace):
<!-- start here -->
bla ksk kak alkd sk skd <img src=/images/myimage.jpg> sjd ksd fksdf
bla ksk kak alkd sk skd <img src=/images/myimage.jpg> sjd ksd fksdf
<!-- end here -->
View the source! It's impossible that the browser will display one and
not the other because it does not know that one is being rendered by a
CFQUERY from a database!
Also, properly terminate your img tag and quote your attribute values:
<img src="/images/myimage.jpg" />
Don L wrote:
> CF8,
> outside query out: <img src='/images/myimage.jpg'> <br> -- displayed
> <cfset imgVar = "<img src=/images/myimage.jpg>">
> output var value of image: <cfoutput>#imgVar#</cfoutput> -- displayed
>
> db column named myData of varchar|nvarchar (5000), one row's data stream reads
> "bla ksk kak alkd sk skd <img src=/images/myimage.jpg> sjd ksd fksdf"
> query the above table and column (resultsets could be numerous rows)
> <cfoutput query="getData">
> ...., #myData# -- the image is not rendered, why not?
> </cfoutput>
>
> I even tried HTMLCodeFormat to see what's there, here's its output
> show: <img src=/images/myimage.jpg><BR>
>
> Hmm, what could prevent the image reference from within a text string being
> rendered by browser?
>
> Thanks.
> Looks like simple but I'm stumbled by it. Thanks.
>
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f
Archive:
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:313997
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4