Hai Michael,
I have used your plugin at 2 demo sites with success and we are in the process to persuade our customers to buy your iFrame plugin so we can integrate our webshops in their wordpress sites.
The setup is always the same:
A The main wordpress website is located on server 1 and available through www.domain.nl
B The webshop which has to be loaded in the iFrame is on server 2 and availablee through webshop.domain.nl or webshop-wordpress.domain.nl
So the sites are on the same domain and no external workaround shoud be nescessary.. But somehow, I cannot get this to work out-of-the box so i try to use the external workaround...
This is the first 'real' site which will use our wordpress-webshop in combination with your plugin but I am banging my head for many hours but somehow I cannot make it to work.
I really want it to work so we can migrate more webshops and hope you can help me.
The easiest way is to use the document.domain method since both the webshop and website are in the same domain:
1 In the code the document.domain is set: <script>document.domain='broekmans.nl';</script>
See
https://www.dropbox.com/s/ctuumbsg5sp0coo/img1.jpg?dl=02 I use this shortcode (security key is modified) which you presented in another threat on this forum:
[advanced_iframe securitykey="2b53b0610d369bc40f984bca72bff4496f6afXYZ" use_shortcode_attributes_only="true" src="https://webshop-wordpress.broekmans.nl" width="100%" id="EVWebshop" name="EVWebshop" show_iframe_loader="true" enable_responsive_iframe="true" onload_resize="true" add_document_domain="true" document_domain="broekmans.nl"]
3 But then this happens.... The website shows for a moment and then disappears and nothing is resized...
http://www.broekmans.nl/wp-content/plugins/advanced-iframe/_test/video1.mp4I have seen this in the past too but after a lot of trial / error finally it worked on other sites but this one is making me crazy...
After this approach failed, I tried to implement the external workaround but somehow I cannot make that to work too...
1 In the code the reference to the external workaround file is available
<script src="http://www.broekmans.nl/wp-content/plugins/advanced-iframe/js/ai_external.js"></script>
The file in in the page and can be found...
https://www.dropbox.com/s/qi249d4mt5r45b7/img2a.jpg?dl=02 I use this shortcode which is generated by the plugin
[advanced_iframe securitykey="2b53b0610d369bc40f984bca72bff4496f6afXYZ" use_shortcode_attributes_only="true" src="http://webshop-wordpress.broekmans.nl" width="100%" height="1400" scrolling="no" id="EVWebshop" name="EVWebshop" show_iframe_loader="true" enable_responsive_iframe="true" resize_on_ajax_jquery="false" ]
3 But than nothing happens and the site is set at 1400, the height set in the shortcode....
Also adding enable_external_height_workaround="true" does not work...
Hope you can help me to get document.domain working.
Regards, Marc