candland

@candland rss self
September 18th 2006

Ajax javascript issues.

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.).

blog comments powered by Disqus