Follow these steps to install this script on your wiki.
http://scripts.mindtouch.com/iframe.xmlRelated Links: DekiScript service, Extension Overview, DekiScript Overview, Extension Demos.
This extension contains a function for embedding <iframe> elements. This script requires MindTouch Deki 1.8.3 or later.
Functions:
Embed an iframe element.
Parameters:
| Name | Type | Description |
| uri | uri | The iframe URI. |
| width | num | (optional) The iframe width. (default: 425) |
| height | num | (optional) The iframe height. (default: 350) |
| scrolling | bool | (optional) Allow scrollbars inside the iframe. (default: no) |
| frameborder | num | (optional) Frame border thickness on the iframe. (default: 0) |
<extension>
<title>MindTouch iFrame Extension</title>
<copyright>Copyright (c) 2008 MindTouch, Inc.</copyright>
<uri.help>http://wiki.developer.mindtouch.com/MindTouch_Deki/Extensions/iFrame</uri.help>
<label>iFrame</label>
<description>This extension contains a function for embedding <iframe> elements.</description>
<function>
<name>iframe</name>
<description>Embed an iframe element.</description>
<param name="uri" type="uri">The iframe URI.</param>
<param name="width" type="num" optional="true">The iframe width. (default: 425)</param>
<param name="height" type="num" optional="true">The iframe height. (default: 350)</param>
<param name="scrolling" type="bool" optional="true">Allow scrollbars inside the iframe. (default: no)</param>
<param name="frameborder" type="num" optional="true">Frame border thickness on the iframe. (default: 0)</param>
<return>
<html xmlns:eval="http://mindtouch.com/2007/dekiscript">
<body>
<iframe src="{{args.uri}}" width="{{web.size(args.width ?? 425)}}" height="{{web.size(args.height ?? 350)}}" marginwidth="0" marginheight="0" hspace="0" vspace="0" frameborder="{{args.frameborder ?? 0}}" scrolling="{{args.scrolling ? 'yes' : 'no'}}" />
</body>
</html>
</return>
</function>
</extension>