[pmwiki-users] Enable javascript in locked-down wiki?

Tegan Dowling tmdowling at gmail.com
Sat Feb 13 19:36:48 CST 2010


For a school's site, I'd like embed this widget code in a page:

<script type="text/javascript" src="
http://widgets1.renlearn.com/content/widgets/readingactivity/readingactivitywidget.js"></script><script>if
(READINGACTIVITYWIDGET) READINGACTIVITYWIDGET.renderWidget('
http://widgets1.renlearn.com/', 'MCPSCX6');</script><noscript>Enable
Javascript in your browser to view this content.</noscript>

I do have html enabled on the site, and I added "script" and "noscript" to
the list of html terms to enable -- in local\config.php I have:

include_once("$FarmD/cookbook/enablehtml.php");

EnableHtml("a|select|option|form|input|iframe|img|small|object|param|embed|script|noscript");

Having done that at least results in hiding the lines above when I add them
to a page, but it doesn't suffice to display the widget.

Can I add something else to the enablehtml stuff on config.php that will
make this work?  I don't know from javascript, so I don't know if part of
doing this right might be to put some of the widget code in the header of
the skin.tmpl file -- but if so, which part, and what goes on the page
itself?

Thanks!

Tegan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.pmichaud.com/pipermail/pmwiki-users/attachments/20100213/b6302bd3/attachment.html 


More information about the pmwiki-users mailing list