# HTML and Images

**URL:** <https://forum.servoy.com/t/html-and-images/4557>\
**Category:** Classic Servoy\
**Created:** [August 1, 2005, 3:11pm UTC](https://forum.servoy.com/t/html-and-images/4557 "2005-08-01T15:11:47Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![tweetie](https://avatars.discourse-cdn.com/v4/letter/t/c68b51/32.png) [@tweetie](https://forum.servoy.com/u/tweetie)\
**Post date:** [August 1, 2005, 3:11pm UTC](https://forum.servoy.com/t/html-and-images/4557/1 "2005-08-01T15:11:47Z")

</div>

Maybe I am missing something but when I put in a text-column :

```auto
<html><head></head>   
   <body>     
      <img src="media:///transparent.gif" border="0" height="10" width="32">     
      <img src="media:///brightgreen.gif" border="0" height="10" width="16">     
      <img src="media:///transparent.gif" border="0" height="10" width="16">     
      <img src="media:///brightgreen.gif" border="0" height="10" width="16">   
   </body> 
</html>

```

This is not very complex HTML-coding…but somehow when it is show in a List or table I great different results everytime, if I only click into another row it could change the outcome.  
The column with HTML is a normal Text-column…  
It used to work perfectly under 2.0… I am not sure if this is due to the fact that I went to Servoy 2.2.

Am I missing sumthing??

Check the attachments.

Thankx in advance for any comments

Servoy Developer  
Version R2 2.2-build 328  
Java version 1.5.0\_04-b05 (Windows 2000)

![wrong2.gif](https://canada1.discourse-cdn.com/flex010/uploads/servoy/original/2X/f/f16471a3d72492699820e9a8e93d8a196d3698bf.gif)

![wrong1.gif](https://canada1.discourse-cdn.com/flex010/uploads/servoy/original/2X/2/2dc1824a800070b754776a90b5e979d3f322dc6d.gif)

![correct.gif](https://canada1.discourse-cdn.com/flex010/uploads/servoy/original/2X/8/892b8561b426954af52346d78ba49d7f6ad5ada8.gif)

---

<div class="post-metadata">

**Author:** ![jcompagner](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/jcompagner/32/4889_2.png) [@jcompagner](https://forum.servoy.com/u/jcompagner)\
**Post date:** [August 5, 2005, 1:53pm UTC](https://forum.servoy.com/t/html-and-images/4557/2 "2005-08-05T13:53:51Z")

</div>

yes showing html with images in a List or tableview is not really supported  
Because a List or Table is rendered once per row. The fields are not really there (a bit hard to explain)

But when it is rendered the text column sets that html. And displays it But then the html rendering kit start loading those images and this happens in a background thread. So the images are not yet there when we are painting the row.

if you just want to show one image in a mediafield then a calc that does this:

return plugin.http.getMediaData(“media:///transparent.gif”)

should work much better.  
Also in 2.2.1 you can do this in a calc:

return “media:///transparent.gif”;

and that calc is then attached to a media field then a media field will load the image under that url.

---

<div class="post-metadata">

**Author:** ![jcompagner](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/jcompagner/32/4889_2.png) [@jcompagner](https://forum.servoy.com/u/jcompagner)\
**Post date:** [August 5, 2005, 3:24pm UTC](https://forum.servoy.com/t/html-and-images/4557/3 "2005-08-05T15:24:11Z")

</div>

ok i found a way to disable the async loading when in listview or table view in the htmlview.  
So with 2.2.1 this should work fine.

---

<div class="post-metadata">

**Author:** ![tweetie](https://avatars.discourse-cdn.com/v4/letter/t/c68b51/32.png) [@tweetie](https://forum.servoy.com/u/tweetie)\
**Post date:** [August 8, 2005, 7:44am UTC](https://forum.servoy.com/t/html-and-images/4557/4 "2005-08-08T07:44:18Z")

</div>

> jcompagner:  
> ok i found a way to disable the async loading when in listview or table view in the htmlview.  
> So with 2.2.1 this should work fine.

cool you just saved me, thankx

---

<div class="post-metadata">

**Author:** ![tweetie](https://avatars.discourse-cdn.com/v4/letter/t/c68b51/32.png) [@tweetie](https://forum.servoy.com/u/tweetie)\
**Post date:** [December 11, 2005, 10:33am UTC](https://forum.servoy.com/t/html-and-images/4557/5 "2005-12-11T10:33:32Z")

</div>

> jcompagner:  
> ok i found a way to disable the async loading when in listview or table view in the htmlview.  
> So with 2.2.1 this should work fine.

The problem has resurfaced again…it did work well in 2.2.1…

Servoy Developer  
Version R2 2.2.3-build 335  
Java version 1.5.0\_05-b05 (Windows 2000)

---

<div class="post-metadata">

**Author:** ![jcompagner](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/jcompagner/32/4889_2.png) [@jcompagner](https://forum.servoy.com/u/jcompagner)\
**Post date:** [December 12, 2005, 11:09am UTC](https://forum.servoy.com/t/html-and-images/4557/6 "2005-12-12T11:09:11Z")

</div>

there is nothing changed in that area as far as i know  
I still have that fix in place that i did then. That disables the asynch loading in html text area when it is in a table/listview.

So what are you doing exactly now?

---

<div class="post-metadata">

**Author:** ![tweetie](https://avatars.discourse-cdn.com/v4/letter/t/c68b51/32.png) [@tweetie](https://forum.servoy.com/u/tweetie)\
**Post date:** [December 12, 2005, 12:35pm UTC](https://forum.servoy.com/t/html-and-images/4557/7 "2005-12-12T12:35:00Z")

</div>

> jcompagner:  
> there is nothing changed in that area as far as i know  
> I still have that fix in place that i did then. That disables the asynch loading in html text area when it is in a table/listview.
> 
> So what are you doing exactly now?

See attachments…I didn’t change a thing…just like you ![:D]( "Very Happy")

The used html code:

```auto
<html>
<head></head>
   <body>
      <img src=media:///new_1_transparent.gif border=0 height=10 width=80>
      <img src=media:///new_1_brightgreen.gif border=0 height=10 width=48>
   </body>
</html>

```

 ![recordview.gif](https://canada1.discourse-cdn.com/flex010/uploads/servoy/original/2X/9/95e30de840b6faa3f5b4e4455e70bc3e3427be69.gif)

 ![listview.gif](https://canada1.discourse-cdn.com/flex010/uploads/servoy/original/2X/8/82eac37b71733c9a3c42ca7df211ce8d8624159d.gif)

---

<div class="post-metadata">

**Author:** ![tweetie](https://avatars.discourse-cdn.com/v4/letter/t/c68b51/32.png) [@tweetie](https://forum.servoy.com/u/tweetie)\
**Post date:** [December 13, 2005, 11:12am UTC](https://forum.servoy.com/t/html-and-images/4557/8 "2005-12-13T11:12:25Z")

</div>

probleem is opgelost door J. Compagner  
Er zatten doubles in het html (width=48.8888892) …en toen ging het licht uit

---

<div class="post-metadata">

**Author:** ![IT2Be](https://avatars.discourse-cdn.com/v4/letter/i/dc4da7/32.png) [@IT2Be](https://forum.servoy.com/u/IT2Be)\
**Post date:** [December 13, 2005, 12:38pm UTC](https://forum.servoy.com/t/html-and-images/4557/9 "2005-12-13T12:38:08Z")

</div>

**[www.freetranslation.com](http://www.freetranslation.com)**

```auto
problem has been solved by J. Compagner from it sat doubles in the html (width=48.8888892) ....en then went it lightly

```

![:)]( "Smile")
