Displaying a media show inside an iframe

Firstly, I do not want to use iframes, but I do not think that I have a choice in this situation.

I am integrating some help documents into an already built system. The easiest way is to let other people write help in order to provide them with media styles with a custom style, and then integrate them into the system into which I would like to put a direct link to the media on the help tab.

The problem is that my mediawiki blocks iframes from downloading it (maybe this is the default setting), but I was wondering how to disable it. I know my code is ok as it loads other sites!

Also can you do what I'm trying to do with a div tag?

thanks

+7
source share
2 answers

Wikis usually do not allow this, but there is a workaround:

To display a wiki in an iframe, you need to find the file "mediawiki-1.xx \ skins \ common \ wikibits.js" and comment on these two lines:

/ / A-trap us from framesets if (window.top! = window) window.top.location = window.location; 

This is a code that does not allow the wiki to display. Seen in here .

+9
source

This is a configuration parameter and can be set in LocalSettings.php.
See $ wgEditPageFrameOptions and $ wgBreakFrames .

Keep in mind that this may open you up for certain click-type attacks.

+4
source

All Articles