how to eliminate replace_html alert pop-up in RJS

how about making it conditional? check existence of that div beforehand.

Thanks MaD. Could you please provide a code on how to do this in RJS?

Thanks,

Tam

there is a similar thread:   RJS - checking if element exists? - Rails - Ruby-Forum