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

JS code not executed on the first call of eModal.ajax #93

Open
edika99 opened this issue Sep 15, 2020 · 3 comments
Open

JS code not executed on the first call of eModal.ajax #93

edika99 opened this issue Sep 15, 2020 · 3 comments

Comments

@edika99
Copy link

edika99 commented Sep 15, 2020

I'm trying to open an html page with a linked js file using eModal.ajax method.

The page is loading and shown correctly but the js code inside the page is not executed.

I've notice that the Jquery(document).ready() is not called. And if I place a plain javascript inside the page is never executed.
To test i've tried with a simple

<script type="text/javascript"> setTimeout(function () { console.log('initCal'); }, 1000); </script>

but even this is never called.
If I close the modal and reopen it the js in the page is executed correctly.

Edika

@edika99 edika99 changed the title embedded JS file not loaded on first call JS code not executed on the first call of eModal.ajax Oct 9, 2020
@agussuwerdo
Copy link

try adding : useBin: true in the options

@edika99
Copy link
Author

edika99 commented Apr 9, 2021

Tested, but doesn't fix the problem

@lucas-gestonauta
Copy link

Same problem here... Any solution?

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

3 participants