You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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...
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?
The text was updated successfully, but these errors were encountered: