jQuery .ready in a dynamically inserted iframe

后端 未结 10 2262
闹比i
闹比i 2020-11-22 07:11

We are using jQuery thickbox to dynamically display an iframe when someone clicks on a picture. In this iframe, we are using galleria a javascript library to display multip

10条回答
  •  梦如初夏
    2020-11-22 07:44

    I answered a similar question (see Javascript callback when IFRAME is finished loading?). You can obtain control over the iframe load event with the following code:

    function callIframe(url, callback) {
        $(document.body).append('