Simple chat example
Added by Xinxi Wang almost 10 years ago
Hi, I am trying to use the simple chat example (http://www.webtoolkit.eu/wt/examples/simplechat/simplechat.wt) in my own website. I am using the popup.
So, it works in this way. First I need to put
in my template file, and then after the template is loaded, a js file will be loaded which then moves the
element from the original place to another place.
The problem is that, sometimes, for some reasons, the
in the original template will be recovered, and the one managed by the js file is also in the DOM tree. So this results in two divs with the same id "chat".
Is there anyway to stop Wt from recovering the original div element?