On Sun, Feb 14, 2010 at 2:36 AM, Tegan Dowling <[email protected]> wrote:
>
> 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/reading 
> activity/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 would tend to use a one-off markup for this:

Markup('MyWidget', 'inline', '/\(:mywidget:\)'/ie',
'Keep("<script type=\"text/javascript\"
src=\"http://widgets1.renlearn.com/content/widgets/reading
activity/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'm not sure I got all the quotes and ampersands right.  This method
is from this page:

http://www.pmwiki.org/wiki/Cookbook/JavaScript-Editable

-Peter

_______________________________________________
pmwiki-users mailing list
[email protected]
http://www.pmichaud.com/mailman/listinfo/pmwiki-users

Reply via email to