How do I force execution of previously injected scripts?
I have a DIV that I inject 4 or 5 different SCRIPT elements that are
dynamically created. The scripts execute at the time of injection. Events
are eventually raised causing need to execute any SCRIPTs that exist
within the DIV again.
<DIV id="divWrapper">
<script id="scr1">...</script>
<script id="scr2">...</script>
<script id="scr3">...</script>
<script id="scr4">...</script>
</DIV>
I have forced divWrapper to re-render, but that does not cause the
injected scripts to execute again.
TY for your time.
No comments:
Post a Comment