jQuery .ready in a dynamically inserted iframe

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 multiple pictures. The problem seems to be that $(document).ready in the iframe seems to be fired too soon and the iframe content isn’t even loaded yet, so … Read more

wp_insert_post iframe missing

In my install, I use one custom page. Here I put one text field and the fck editor. This is for the title and the content. I need to insert this into a page. I use the following code $my_post = array( ‘post_title’ => $_POST[‘title’], ‘post_content’ => $_POST[‘content’], ‘post_type’ => ‘page’, ‘post_status’ => ‘publish’, ‘post_author’ … Read more

Which HTTP headers to use for subdomain embedding?

I have a WordPress site hosted on LightSail (which uses bitnami). The domain is https://example.com On a subdomain https://sub.example.com I have another server running. On this server, I want to embed a page from the main domain https://example.com/a-page. Currently, I am getting errors that permission is denied. I have updated the htaccess file like so: … Read more

Access tinymce from thickbox

Basically, I have a custom tinymce button which opens a thickbox window in iframe mode. Is there a way to access the tinymce from the iframe? WordPress media uploader seems to do it somehow. Stuff like $(‘#content’, window.parent.document).tinymce().getContent() does not work. PS. If that’s impossible, I’ll have to do use the tinymce default popup window, … Read more

“Full screen”

When I use the following code to create an iframe: <iframe src=”https://stackoverflow.com/questions/3982422/mypage.html” style=”border: 0; width: 100%; height: 100%”>Your browser doesn’t support iFrames.</iframe> The iframe doesn’t go all the way—a 10px white “border” surrounds the iframe. How could I solve this? Here is an image of the problem: 10 Answers 10

How to ensure the visual editor doesn’t ruin my iframe?

I have this iframe and JavaScript embedded in a post: <iframe onload=”fa_iframeresize.do(this);” src=”https://example.com/calc.php?tp=dif&cl=beleggen&h=1&wf=19370&country=NL” scrolling=”no” width=”100%” style=”padding:0px;margin:0px;border-width:0px;” frameborder=”0″> </iframe> <script type=”text/javascript” src=”https://example.com/iframeResizeMe.min.js.gz”></script> But whenever I go to the visual editor the HTML gets changed tiny bit in such a way that example.com’s code can’t handle it anymore: <iframe style=”padding: 0px; margin: 0px; border-width: 0px;” src=”https://example.com/calc.php?tp=dif&amp;cl=beleggen&amp;h=1&amp;wf=19370&amp;country=NL” width=”100%” … Read more