The saga continues...
I have now moved the iframe contents into the root, so now my folders look like this
Root
* wp-folder (name: legstadaleit)
* iframe-folder (name: tng)
What I want is mapping iframe url and auto-size iframe.
My code is:
Code:
[advanced_iframe securitykey="xxxxx" src="http://www.hafdal.dk/tng/cemeteries.php" use_shortcode_attributes_only="true" id="legstadaleit" height="800" width="100%" map_parameter_to_url="page" add_iframe_url_as_param="same"]
As I understand it
Code:
map_parameter_to_url="page" add_iframe_url_as_param="same"
should achieve mapping iframe and
Code:
onload_resize="true"
should achieve auto-size. Right?
I have removed
Code:
<script>document.domain='hafdal.dk';</script>
from footer.php and index.php and after that I could view the media that previously gave the error:
Quote:
Error: Permission denied to access property "document"
[Learn More]showmedia.php:158:5
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at http://hafdal.dk/legstadaleit/wp-admin/admin-ajax.php. (Reason: CORS header ‘Access-Control-Allow-Origin’ missing).(unknown)
Use of getPreventDefault() is deprecated. Use defaultPrevented instead.jquery.min.js:2:40351
Expected ‘none’, URL, or filter function but found ‘alpha(’. Error in parsing value for ‘filter’. Declaration dropped.showmedia.php
Error in parsing value for ‘height’. Declaration dropped.
But mapping parameter to url and auto-size does not work
Check out
http://hafdal.dk/legstadaleit/gagnagrunnur/?lang=is