March 28th, 2013, 01:31 PM
Call JS function in an iframe
I've got FullCalendar sitting in an iframe that's hidden in a jquery dialogue modal. In FF and chrome it works great however in IE the calendar won't render.
I've written a JSfunction that lives with the calendar to render it.
on the page hosting the iframe i've got a link that will trigger the JQuery dialogue box.
$('#calendar').fullCalendar( 'render' );
This refuses to trigger the function. I can run the function from inside the iframe but not like this. I'm starting to run out of things to try.
<A href="#" id="opener" onclick="document.getElementById('iframe2').contentWindow.Render();">Test</A>
March 28th, 2013, 01:47 PM
Originally Posted by dsfx
Well i figured it out. I forgot to put an ID on my iframe.