Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scripts in html content of winbox are ignored #178

Open
nightrider77 opened this issue Apr 15, 2024 · 1 comment
Open

Scripts in html content of winbox are ignored #178

nightrider77 opened this issue Apr 15, 2024 · 1 comment

Comments

@nightrider77
Copy link

nightrider77 commented Apr 15, 2024

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
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant