Paul,
that images problem should be fixed now (RC4)
it it in the html a real button or is a a link?
But you shouldn’t do this if possible:
switch(state)
{
case -1:
return plugins.http.getMediaData(“media:///ledyellow.png”);
…
}
but that should be:
switch(state)
{
case -1:
return “”;
…
}
both ways should work now but the second way the media is a shared cachable image. And that isn’t possible in the first way. Becaue the byte array is streamed by the button/link component itself and not by the shared media service. So it is seen as dynamic.
But if you display it as a real button (in html). Then that second way doesn’t work because a button in html can’t display in line html. (value attribute)