I use a thickbox to display some html content in a modal window.
I know the thickbox component is flagged as "not maintained, please try another component", but I don't have a choice on using it.
The html content is loaded through the documented "AJAX content" method :
All of this works fine with simple html, a modal window pops with the correct content on my page.
My question :
I would like to initialize a jquery component inside the modal window after it has loaded.
$('.actDisplay').click( displayAction );
In order to initialize this component, I have to call
$('#agendaDiv').fullcalendar( options );
once the DOM is loaded.
For a full page, I would put it in the
$(document).ready event. But in this case ?
Thanks in advance,
You could use jquery live method
or inject a <script> tag at the end of your loaded content (possibily a trigger)