pro demo for some working examples. Please also check the additional 5 options. These are the advanced features to handle changes in the iframe.
Also media queries are supported! This enables you to show different areas depending on the browser width. Please see example 55 for a working demo.
', 'advanced-iframe'); echo 'Show me an image how the settings are used.
'; echo ' . '/advanced-iframe/img/help-area-selector.gif)
'; _e('With the following 5 options you can do something when the page in the iframe does change. The parent page does only know the url of the iframe that is loaded initially. This is a browser restriction when the pages are not on the same domain. The parent only can find out when the page inside does change. But it does not know to which url. So the options below rely on a counting of the onload event. But for certain solutions (e.g. show only the login part of a page and then open the result page as parent) this will work.', 'advanced-iframe'); echo '
'; ?>
IMPORTANT: This is only possible if the iframe comes from the same domain because of the same origin policy of Javascript.
If you can use the "External workaround", you can also use this setting in the pro version.
Please read the section "How to find the id and the attributes" above how to find the right styles. If the content comes from a different domain you have to modify the iframe page by e.g. adding a Javascript function that is then called by the onload function you can set above or you add a parameter in the url that you can read in the iframe and display the page differently then. You should also use the external workaround to modify the iframe if your page loads quite slow and you see the modifications on subsequent pages. The reason is that the direct modification can only be done after the page is loaded and the "Hide until loaded" is only working for the 1st page. The external workaround is able to hide the iframe until it is modified always and also css can be added to the header directly.', 'advanced-iframe'); ?>
'; _e('With the next 2 options you can modify the css of your iframe if it is on the same domain or if you can use the external workaround and have the pro version. This settings are save to the ai_external.js. The first option defines the id/class/element you want to modify and at the 2nd option you define the styles you want to change.', 'advanced-iframe'); echo '