HTML and Images

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

<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

wrong1.gif

correct.gif

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.

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.

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

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)

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?

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

The used html code:

<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>

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

www.freetranslation.com

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

:)