Extension:Iframe

Copyright & Security issues
Embedding external webpage into MediaWiki has two issues:


 * Copyright violation: Embedding an external web page may violate copyrights. So, make sure that the domains that can be used in the extension are trusted!
 * Security issue: External web pages may contain malicous code. Again make sure that the domains that can be used in the extension are trusted!

The extension uses keys to select web servers which are given by the wiki adminstrator during installation. Therefore, behind the key should only be trusted domains.

Download
You can obtain the extension from Github.

Installation

 * 1) Go to the extensions directory and
 * 2) clone it from GitHub
 * 3) Add to the bottom of LocalSettings.php
 * 4) If want to add own keys/servers after loading the extension

A list of predefined keys, schemes, and domains can be found in iframe.ods.

Delay of iframe loading
Usually a HTML document is shown if all parts of a document are loaded. If a iframe on a server, e.g. a Shiny server, triggers a lengthy computation then the document will appear only after all iframe(s) are loaded. Therefore a delay mechanism with JavaScript is included which starts the loading of the iframe(s) only after the document is ready. By $wgIframe['delay'] the delay is controlled:


 * 1) If in LocalSettings.php   (or any negative value) is set then the iframe(s) will be loaded immediately, no delay  will take place.
 * 2) If in LocalSettings.php   (the default) is set then the first iframe will be loaded 100 ms after the document is loaded, the second 200 ms, and so on.

Examples
1. Shows the test page of my shiny server

2. Shows the example app for R codes which I use (to load an file click on, select  and choose an example file).

3. As 2., but the iframe window has only VGA size (640x480).

Usage
The tag  has the following attributes

The final URL is build by  where   and   are given by the , e.g. the examples above will generate the URLs


 * and

Note: you can abbreviate the keys, e.g. for the examples above could be used

Wikis

 * MM-Stat wiki (in german)