Scripts in html content of winbox are ignored
nightrider77 opened this issue · 1 comments
nightrider77 commented
I am getting data ( html + script type="text/javascript" inside it) with ajax request.
After this, I create window as the following:
new WinBox( { html: data } );
But all JavaScript code, passed within data parameter, is completely ignored. But html shows correctly.
Why?
nightrider77 commented
It seems to me, .innerHTML doesn't execute scripts inside html.
So the only solution is to run scripts inside oncreate event function.
This makes switching to this winbox lib very painful...