Confluence: 5.1.1
Refined Wiki: 3.5.3
When using our makro "iframe" wihin a page the Refined Wiki Navigation disappears (Menue is black - no entrys were displayed). iframe code is:
## Developed by: Claus Schlotz
## @param 0:title=url|type=string|required=true
## @param 1:title=Breite|type=string|required=true
## @param 2:title=Höhe|type=string|required=true
<iframe src="$param0" width="$param1" height="$param2"></iframe>
Is this a bug? Please help. Thanks
This solves the problem:
<script type="text/javascript">
document.write('<iframe src="$param0" width="$param1" height="$param2"></iframe>');
</script>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Claus,
The issue seems to be related to how Confluence renders pages through velocity. I found that when rendering a page containing an iframe, everything that should be loaded after the iframe isn't rendered.
When using RefinedWiki OriginalTheme this means that dropdowns, the footer and some templates are not rendered. When using Confluence Documentation Theme instead of RefinedWiki OriginalTheme, the sidebar and footer was not rendered. So I do not believe this issue is related to RefinedWiki.
One solution would be to inject the iframe after page load. For your macro it could look like the following:
## Developed by: Claus Schlotz ## @param 0:title=url|type=string|required=true ## @param 1:title=Breite|type=string|required=true ## @param 2:title=Höhe|type=string|required=true <div id="iframeMacro"></div> <script type="text/javascript"> AJS.$(document).ready(function(){ AJS.$('#iframeMacro').html('<iframe src="$param0" width="$param1" height="$param2"></iframe>'); }); </script>
Please let me know if you have further questions.
Best Regards,
Dennis
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.