Javascript functions injected into the DOM using innerHTML will not work. So using something like:
mydiv.innerHTML = [html result from ajax method call];
...
<div id="mydiv">
</div>
make sure the [html result from ajax method call] doesn't contain javascript, other then events (onclick, onblur, etc.).