Jason Mihalick wrote:
Thanks for the tip. That worked! That was too easy. :-)
It's possible update the image in a more smooth manner (to avoid
blinking). Java part:
target.appendJavascript("refreshImage(document.getElementById('"
+ graphImage.getMarkupId() + "'));");
And the script:
<script>
function refreshImage(img) {
if (/refreshImg/.test(img.src)) {
var newSrc = img.src.replace(/&refreshImg.*/,
"&refreshImg=" + Math.random());
img.src = newSrc;
} else {
img.src = img.src + "&refreshImg=" + Math.random();
}
}
</script>
--
Andrew Klochkov
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]