search envelope-o feed check
Home Unanswered Active Tags New Question
user comment-o

Modal does not load / trigger jquery or javascript

Asked by Suman
3 months ago.

Hi,
I am using daypilot modal with

var modal = new DayPilot.Modal();
modal.useIframe = false;
modal.showUrl(url);

In the url page, i tried to simply call javascript or js but that did not trigger.
Any idea why is it not calling.

Thanks
Suman

Answer posted by Dan Letecky [DayPilot]
3 months ago.

If you use the modal dialog to display a custom URL using showUrl() it will always use an iframe. The "useIframe" value is ignored in this case.

If you want to reach the JS objects created in the parent page you need to use "parent" object instead of "window". E.g. if there is a "dp" object in the main page you can reach it as "parent.dp" from within the modal page.

Let me know if this is not what you are looking for.

This question is more than 3 months old and has been closed. Please create a new question if you have anything to add.