You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Giovanni Azua <gi...@imc.nl> on 2007/10/23 11:48:18 UTC
AJax remote DIV flickering ...
hi all,
I have within a S2 self updating Ajax remote DIV a displaytag table that
flickers terribly. Is there any cheap way to get rid of the flickering?
The showcase example also flicker slightly but when there is more
content then it becomes really bothering.
TIA,
regards,
Giovanni
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: AJax remote DIV flickering ...
Posted by Jeromy Evans <je...@blueskyminds.com.au>.
Giovanni Azua wrote:
> hi all,
>
> I have within a S2 self updating Ajax remote DIV a displaytag table
> that flickers terribly. Is there any cheap way to get rid of the
> flickering?
I think this is an interesting question. Its inevitable that for a
moment the content of the div will be replaced in the DOM and that may
cause the browser to flicker. I'd be interested to see if others have
suggestions to avoid this.
Ensure you have showLoadingText="false" and no indicator within the
target div. Next I suppose you need to minimise the time it takes to
render the new table. For instance, preventing dojo from parsing the
result (albeit there's no built-in support to do this in struts 2.0.x)
and ensuring any javascript blocks are at the end of the result.
My only other suggestion would be that you don't use displaytag at all
and instead use an ajax table/datagrid that updates content only rather
than the markup+content.
cheers,
Jeromy Evans
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org