NOTE: Allowing the <iframe> HTML element has serious security implications. Make sure you are fully aware of them before you enable this function.
| Vendor | MindTouch |
| Type | Script |
| Categories | Advanced |
| Requires | MindTouch Deki 1.8.3 or later |
| Status | Stable |
| License | Free/Open Source |
| Manifest | http://scripts.mindtouch.com/iframe.xml |
Table of Contents
This extension contains a function for embedding <iframe> elements.
See also How to add a script, Using the Extension Dialog, Learn about DekiScript, Extensions Directory.
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) 2006-2009 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 eval:src="args.uri" eval:width="web.size(args.width ?? 425)" eval:height="web.size(args.height ?? 350)" marginwidth="0" marginheight="0" hspace="0" vspace="0" eval:frameborder="args.frameborder ?? 0" eval:scrolling="args.scrolling ? 'yes' : 'no'" />
</body>
</html>
</return>
</function>
</extension>
/p[2]/span, function 'local://d23c587d48b342eba621a61df1e90bfc/deki/services/ourwiki.company.com/16/iframe' failed with response:
could not convert parameter 'scrolling' (index 4) to bool
Any ideas why using the option: scrolling: "yes" would cause this?
Eamon.
Sense any frustration yet???