Code

Discussion on Advanced iFrame Pro

Discussion on Advanced iFrame Pro

Cart 11,431 sales

mdempfle supports this item

Supported

This author's response time can be up to 1 business day.

872 comments found.

Hello,

I need to use iframe (and/or other html techniques) to embed my entire website (WordPress) so that all visitors will never see my real website but only the apparent website (apparent domain name).

Is it possible with your plugin, please?

Thank you.

Hi,

So you want a “fullscreen” iframe? For a possible solution you can look here:

http://www.tinywebgallery.com/blog/advanced-iframe/advanced-iframe-pro-demo/full-screen-demo

Best regards, Michael

Hello Michael,
Thank you for your reply.
I have just sent you a private message.
Best regards,
Corinne

I know :). Best regards, Michael

Hi , Can I display a button , and when clicking it, the iframe will reload ?

Where do you like to display the button? Because a normal button you place in you html like you see here: https://stackoverflow.com/questions/11287050/iframe-reload-button if you like to have this over the iframe see : http://www.tinywebgallery.com/blog/advanced-iframe/advanced-iframe-pro-demo/hide-a-part-of-the-iframe#e44 there is custom html included.

Best regards, Michael

Thanks Michael,

I have done this by following the tutorial from the link you send. Combine it with hide a part of the iframe is the perfect tips.

:). Glad I could help

I have used this plugin for years with no issue. I upgrade today and somehow broke my page. I am sure I missed something because this plugin is normally fool proof. Page is here https://www.strokersdallas.com/motorcycle-inventory/.

Please check the message I sent you to your direct message

Uncaught Error: Syntax error, unrecognized expression:

class=’InventoryList xFacebookInventoryList’

is not a valid jQuery selector. If you want to select a class use . and the class you want to select.

Hi Michael,

Is it possible if I want a modal box which later contains “Dynamic Iframe Content” with the same domain name?

I have a “Home” page and it already contains the latest “News” and I have a “Read More” link to see the details of each “News” but i want to in the form of an “Iframe Modal Box

Example:
domain. com/home and on that page I have a links:
domain. com/news/?id=01
domain. com/news/?id=02

The “News” page will open in the form of an “Iframe Modal Box” and the contents of the page are “News 01” or “News 02” etc.. depending on which I click

Of course in the “News” page existing and I create a blank display by default, content will appear if there are parameters in the URL

Will it later have a different “Iframe Modal Box” ID or will it still use the same “Modal Box” ID but only “Dynamic Content”? Can an “Iframe Modal Box” read the parsed parameters from the “Home“page

Hi,

Please check this demo:

https://www.tinywebgallery.com/blog/advanced-iframe/advanced-iframe-pro-demo/show-the-iframe-as-layer

Is this what you are looking for?

Best regards, Michael

Ohh OK

Example 34: Change link targets and show the iframe as layer and an additional Example 37, 38, 54, 54A, and 58.

Thanks Michael

Hola quiero mostrar este tour virtual 360 dentro de una de mis paginas en ancho y alto completo, sin scroll, el tour esta en una carpeta dentro de la raiz del mismo dominio que la pagina web, me puede ayudar he indicar como hacerlo, he intentado ya varias configuraciones y solo consigo verlo ha ancho completo, pero no en altura completa? esta es la url de tour https://web3dvista.sanicelli.com/tour/webdemo/index.html

que se tendría que mostrar en la pagina https://web3dvista.sanicelli.com/360-2/

Not sure If I understand right as google translate did not get a clear translation. The first link you send seems to be 100% height. So do you still have the problem? also often using 100vh works to get 100% of the browser view. Do you need this? On the other link I do not see any iframe at all.

You might take a look here: http://www.tinywebgallery.com/blog/advanced-iframe/advanced-iframe-pro-demo/advanced-height-features-with-headers-and-fullscreen-iframes

There you see fullscreen iframe with headers.

Best regards, Michael

is your plugin compatible with WordPress 6.0?

I’m testing right now and have not found any issues yet. An update where then 6.0. will be officially supported will come in the next days.

Best regards, Michael

Pre-sale : we can set a iframe on page and do actions to it with button click ? (actions : – refresh it with same url and refresh it with another url)

This is also possible. For this you need to modify the targets in the iframe. If you can add Javascript to the page in the iframe my plugin can do this as well.

See: https://www.tinywebgallery.com/blog/advanced-iframe/advanced-iframe-pro-demo/change-links-targets

Best regards, Michael

This is great it can e y class selector ? for ex : only links with X class will be target=”_parent ” ?

Yes. Any jQuery selector is supported.

Where can I find the change log for the new version? Could you always make sure to update http://www.tinywebgallery.com/blog/advanced-iframe/advanced-iframe-history or a similar page when you push changes?

Not sure what you mean. The changes are there listed already since 2 days. (by TinyWebGallery 2 days ago (14 May @ 09:09)) Also the included readme.txt (Wordpress default) has them as well.

Best regards, Michael

Just replaced the plugin on another website – worked fine then on another and it didnt – same problem as in my dev site, the iframe gets cut of but in this case no error in console. Installed 2021.9 again…

Both are production sites – dont know what happens here…

e.g. on my demo

resize_on_element_resize=”#content” resize_on_element_resize_delay=”100”

is the setting for my page where #content means there is an element with id=”content”

Best regards, Michael

Hi – ok i checked it looks good to me ill try it. But a hint to get the cookie from the storage would be great. In my case i would caclulate the size on the ajax request so its faster then your demo and this make things smoother.

It is a cookie. the name of the cookie is “ai-last-height” + the id of the iframe. Reading a cookie In Javascript: https://www.w3schools.com/js/js_cookies.asp.

Still I don’t think the cookie does not make sense for you. You can get the current height directly. And resizing after an ajax request is actually also implemented. In the pro version it is not in the administration anymore as “resize to element resize” is much easier to setup.

resize_on_ajax=”“

If you like that the iframe is resized after each AJAX event in the iframe please enter a number here. Otherwise leave this field empty. The number is the timeout in milliseconds until the resize is called. This setting intercepts the AJAX call after the callback was executed. So for many pages 0 should work fine. But if you have e.g. a slide down effect you should add the time here to get the full height. Currently only jQuery and direct XMLHttpRequest are supported as AJAX calls on the included page! See the “AJAX events are jQuery” setting. This setting does only work on the SAME domain by default. If you like to get this working across different domains use the “Resize on Element resize” feature of the pro version. Shortcode attribute: resize_on_ajax=”“

AJAX events are jQuery: Currently only direct XMLHttpRequest and jQuery AJAX call can be intercepted. Please select true = jQuery, false = XMLHttpRequest. Shortcode attribute: resize_on_ajax_jquery=”true” or resize_on_ajax_jquery=”false

Best regards, Michael

Please read my answer above too Regarding the admin setting i updated the plugin to the latest version and now getting:

Advanced iframe configuration error: You have enabled the resize of the iframe for pages on the same domain. But you use an iframe page on a different domain. You need to use the external workaround like described in the settings. Also check the next log. There the browser message for this error is displayed.

BUT Thats not the case – website and iframe are on the same domain. Worked fine with 2021.9

The iframe no longer works…. The setting is empty – no cache issues… Thanks God i only updated a developement site

This feature has not changes since then. What is the log after that where the browser error is shown.

Best regards, Michael

Hi, inside the iframe html im loading some form elements with ajax now where the height changes. How can i adjust the height of the iframe after click on the submit button or ajax call?

Hi,

1. You have to define an element outside which is resizing. “1” seems not to be a proper id. Can you share the URL so I can take a look.

2. Not sure what you mean here.

3. resize_on_element_resize is normally the easiest to setup. Define the proper id / class and then it should work. See my examples.

Best regards, Michael

1. I was not aware that i have to set a id – maybe a hint above or below the input field would be fine. Ill try – of course 1 was not an id..

2. There is another way “Store height in cookie”. so i can get the height of the iframe from the cookie storage. So my question was how can i try tis way too? Im aware of php and a bit js – so im looking for a code solution NOT a Shortcode attribute

3. i will try this

1. Not sure what you mean. At the input field in the administration is the following doku “With this setting you are able to detect if the size of an element changes. If this is the case than the iframe is resized. This can be on click, by an Ajax call, typing with the keyboard where a menu opens, a timer …. So actually any change of the size. The big advantage is that this feature is most of the time easier to configure than the options before and also more powerful. But it has the disadvantage that the change of the size is not send by an event but the defined elements are checked in a fix interval (see below). So e.g. every 100ms a certain div is checked and if the size has changed the iframe is resized. If you only specify “body” then the iframe does enlarge nicely but does not get smaller anymore. The best way to configure this is to use the outermost element where the change can happen. Please see example 26 for a working example. This feature does also trigger all css/js modifications inside the iframe again! You can use the jQuery syntax to specify the elements. Most likely the outermost div (e.g. #main, #page, #wrap) is the one you need. This feature is also available in the external workaround! There you can try #ai_wrapper_div as this very often is rendered by the ai_external.js. This feature replaces “Resize on click events” and “Resize on AJAX events” from the free version as it is more powerful and easier to configure. Shortcode attribute: resize_on_element_resize=”””

Is this not enough?

Also see the examples I have sent you.

2. Store height is cookie is only a default for the first time the iframe is loaded. Normally is is enough to set a good default size.

Main domain is: xxx.yyy.com.au

External domain is: zzz.com.au

I have embedded the form (webpage) from the external domain. I am having issues to automate the height of the form without the scroll bar. I want the right hand side solution as in the below image:

hi, I have new question. For security reason, my X-Frame-Options set to on. My iframe content is my sub-domain

For free-iframe-checker Header X-Frame-Options found. The header is set to SAMEORIGIN. You are on a different domain and therefore this page can NOT be included. The url is redirected to …(http status: 200)!

How to pass the X-frame option in sub-domain iframe only?

You do not need to pass anything. If you are on the same domain this works out of the box. Which iframe checker you talk about? https://www.tinywebgallery.com/blog/advanced-iframe/free-iframe-checker ? This is on a different domain. So simply try.

Check the Javascript console if you do your setup. There you also see messages if you have any issues…

Yes, I used the free iframe checker on above link. The JS console showed that Header X-Frame-Options found. The header is set to SAMEORIGIN. You are on a different domain and therefore this page can NOT be included. l: LOG: “Advanced iframe: document.ready called”.

I guess it related to “different domain” problem. I had read the blog text tutorial and guide on iframe admin panel. However, it seems not work. Any video tutorial can be provide via email?

Main domain: sample.com subdomain: A.sample.com Showed the subdomain as iframe (A.sample.com) in my main site (sample.com) But I need to set the X-Frame-Options. It blocked the connection between sample.com and A.sample.com

if you use the link above it only shows you the current status when you would include the iframe to tinywebgallery.com.

So have you tried to include the iframe? What happens? is it shown or not?

There are 2 things: 1. showing the iframe at all = X-Frame-Options. 2. having access to the other domain = sub domain restrictions!

I don’t know where your problems/errors are. The iframe checker is only a indicator. Simply try and check your browser Javascript console. I don’t know which blog text tutorial you referring to. There are a lot.

So you might simply share a link where you have your setup.

Best regards, Michael

I can’t write in the support forum; it doesn’t accept my password. I tried to change it but it doesn´t work.
My problem is that I can only see the iFrame on desktop, not on the cell phone.

It is a pdf from another site

Is the pdf shown at all in a cell phone? Not sure it is supported there.

What you can do is to enable the internal debug console on the options tab and check if you get any errors in the Javascript console there. Otherwise you could use the browser detection and display maybe a direct link for this then.

Best regards, Michael

helle where i can find Purchase code to activate my ifram plugin ?

What does not work? It is not shown at all? what happens if you check the iframe killer script button? Is there something shown?

It is not shown at all?:

-yes It is not shown

what happens if you check the iframe killer script button? Is there something shown?: - its Works: show home page of my website Corectly wthi

Can you simply share the page where you have the problem? Then I can take a look. you can also sent it to me directly at: https://codecanyon.net/user/mdempfle

What’s on the latest update? There are no entries here http://www.tinywebgallery.com/blog/advanced-iframe/advanced-iframe-history

Hi, I updated the page. Please check again.

Thanks!

we are using plugin and install correctly but getting a “refused to connect” from the url we want to embed. We have full access to url we want to embed and we both have https can you tell us some things to look at in url code to allow connection. thanks

Please see here: https://www.tinywebgallery.com/blog/advanced-iframe/free-iframe-checker – This might tell you what is your problem.

Also press F12 to see the console log. There also more details are reported.

Best regards, Michael

it shows no xframe headers and no dont see a iframe blocker script, so problem still exists

solved it thanks

Hi, A month ago , I was tested done(Auto sizing:height and Using external link). Suddenly the iframe don’t run. As below, I checked that css code is included..

.errordiv { padding:10px; margin:10px; border: 1px solid #555555;color: #000000;background-color: #f8f8f8; width:500px; }#dwitCross3 {visibility:visible;opacity:1;vertical-align:top;}.ai-info-bottom-iframe { position: fixed; z-index: 10000; bottom:0; left: 0; margin: 0px; text-align: center; width: 100%; background-color: #ff9999; padding-left: 5px;padding-bottom: 5px; border-top: 1px solid #aaa } a.ai-bold {font-weight: bold;}#ai-layer-div-dwitCross3 p {height:100%;margin:0;padding:0}.ai-lazy-load-dwitCross3 { width: 100%; height: not set; padding: 0; margin: 0; }#dwitCross3 { visibility:hidden; }

Short code I used is here. [advanced_iframe securitykey=”your key” use_shortcode_attributes_only=”true” src=”http://dwit.wooripage.net/BBS/msList.php?tId=jobConsult” id=”dwitCross3” height=“auto” width=”100%” scrolling=”no” enable_lazy_load=”true” hide_page_until_loaded_external=”true”]

What’s the problem? I am also using with All in one seo.

The css is normal. As the plugin needs to render dynamic css this is done inline. So you will always see this.

Do you have a url I can take a look? And can you please give more details about the error “don’t run” can be a lot.

About the console – this is correct. It seems the way you include the configuration is one of the old ways. There is now a much better one. You simply include the config file directly in the administration and it will be part of ai_external.js.

Do you have any other messages in the console?

Best regards, Michael

When I remove “enable_lazy_load=”true”” In short code, Ifame showed. Not auto height showing but static height showing…. During one month, I never access any code and any button in admin page.

None of console massge regarding your plugin. Please check this url.

http://www.dwit.or.kr/employment-support-center/status/ <iframe id=”_dwitCross7”>

As I don’t have permission on the external domain, I’ll have to ask to change file path. If i should change file path, Tell me which file i would link.

Hi,

I see as error: Failed to load resource: the server responded with a status of 404 (Not Found) -> http://www.tinywebgallery.com/blog/wp-content/plugins/advanced-iframe-custom/ai_external_config_dwitCross7.js This in MY domain. Seems you have set the main path wrong.

so for me it seems the config file is not there! So nothing is really working

You include MINE

http://www.tinywebgallery.com/blog/wp-content/plugins/advanced-iframe/js/ai_external.js?config_id=dwitCross7

ai_external.js! you need to include YOURS! please check the external workaround tab and follow the 1:1 instructions. There is also the complet link to your Javascript file. The solution you had was never working imo as you where using my settings which are for sure not working for you.

Best regards, Michael

You seem to be publishing an update every other day. How can we know that the current version is stable??

We also got an email from WPEngine saying the plugin had a vulnerability.

Please focus on stability here. We are not looking for more features, but something that just works.

I have already a feedback by ” iThemes Security” plugin which cleared this warning. I you still get anything please send me a link with details. I will then also take a look at it asap.

Thank you for clarifying, as well as for taking care of this fix

HI. This is a pre-purchase question. I have a client who has 2 sites, site A & B. He is asking me to iframe site A (I don’t know this was built using WP or not) in site B (I built this using WP). I have no whatsoever control of site A. I only have control of site B. My question, is it possible to redirect the iframe when visitors click links in the iframe to the preferred page (in site B ) my client want? Thanks.

Hi. I already sent you a question via above-mentioned link.

by
by
by
by
by
by

Tell us what you think!

We'd like to ask you a few questions to help improve CodeCanyon.

Sure, take me to the survey