It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

How to embed an external web page in an AUI menu?

HomeAway Nov 12, 2014

As a Confluence Admin I wish to include the content from an external site's page into a div from the aui-nav menu.  The following code in the header of the Custom HTML produces the div with the iframe but give me a Confluence 404 without regard to the URL specified.  The URL has been white-listed.  

Any ideas on what I am missing?

AJS.toInit(function(){
    AJS.$('.aui-header-primary .aui-nav').prepend('<a href="#Tools-menu-link-content" aria-owns="Tools-menu-link-content" aria-haspopup="true" class="aui-button aui-button-link aui-dropdown2-trigger aui-style-default">Tools</a><div id="Tools-menu-link-content" class="aui-dropdown2 aui-style-default"><div class="aui-dropdown2-section" style="width:800px;height:600px;"><iframe src=“https://www.google.com” width=800 height=600></iframe></div></div>');
    AJS.$('#Tools-menu-link-content').ajsMenu();
});

Results in:

image2014-11-12 8:20:44.png

1 answer

0 votes
HomeAway Nov 12, 2014

BTW tried moving the JS to the body. No luck.

Suggest an answer

Log in or Sign up to answer
This widget could not be displayed.
This widget could not be displayed.
Community showcase
Published in Confluence

Confluence CVEs and common questions

Two vulnerabilities have been published for Confluence Server and Data Center recently: March 20, 2019 CVE-2019-3395 / CVE-2019-3396 April 17, 2019 CVE-2019-3398 The goal of this article is...

956 views 0 19
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you