Escape html

In my project, I have certain text fields that have their escape option turned off so that html in it can be interpreted as html. I have the the following in the text field:

<img src='C:/emoticons/cool.gif'>

This should show a picture from my C:\emoticons folder called cool.gif, it previously worked under IE6 however now that I am using IE7 they show up as little image placeholders that look like a red squard, green circle and blue triangle. I know IE7 has problems but displaying a simple html picture? Anyone run into this and figure a way to fix it or another way to display a picture with Html that IE7 will work with?

[653 byte] By [Dtbonea] at [2007-11-26 15:32:15]
# 1

I found out the exact reason for the image not showing up in my tables using html in an escape textfield. The problem has something to do with security in IE7. Once I added my http://localhost to my trusted sites, the pictures showed up.

This is a problem because now anyone who wants to view the page, have to trust my site in order to see the full range of features.

Is there any other way to display these images without getting blocked by security features? Since I am making a forum, I can't use the picture component because you never know when the writer of the post will want a smilie face or not. All they have to do is select a smilie from a drop down, and then the following text is inserted ":-)". From there my program turns that into html to display the graphical smilie at run time. I can see the possible security risk there if I chose to use malicious code instead of displaying a picture. Any ideas?

Dtbonea at 2007-7-8 21:49:12 > top of Java-index,Development Tools,Java Tools...
# 2

Anyone run into this issue with IE7 yet? It is real easy to reproduce if you haven't. First make sure you are using IE7 then put a picture in an easy to get to place like "C:\temp\pic.gif" then create a staticText field and uncheck the "escape" property on the right. Now in your code set the staticText to:

<img src='C:/temp/pic.gif'>

you can even put in a string like "hello" to make sure is printing out. It should print your "hello" message and then an image placeholder box that IE7 uses. If anyone can find a work around for this please help!

Dtbonea at 2007-7-8 21:49:12 > top of Java-index,Development Tools,Java Tools...
# 3

Despite the lack of help, I figured out my error. Despite IE7's security where it would block a "file" protocol html image unless i put http://localhost in my trusted sites, I learned that I would not be able to see the pictures from another computer anyways, even when trusted.

I changed from <img src=C:/temp/pic.gif'> and made it "http" protocol like so: <img src='/projectName/folder/pic.gif'>

After changing this, I now see the html displayed pictures in a staticText without a problem and without using an image component from the palette. Hopefully this will help someone later.

Dtbonea at 2007-7-8 21:49:12 > top of Java-index,Development Tools,Java Tools...