Giovanni,
I had a similar problem a couple of weeks ago & Jamie was kind enough to
provide the following advice:
-----Original Message-----
From: Jamie Bliss [mailto:astronouth7303@gmail.com]
Sent: Wednesday, 8 December 2004 8:54 a.m.
To: MediaWiki announcements and site admin list
Subject: Re: [Mediawiki-l] custom extension including <script> tags
Try placing the code in a seperate file and referencing it in a single
line. This works for me:
function renderRandomQuote( $input )
{
$output = '<script type="text/javascript"
src="http://www.chiefdelphi.com/forums/xml/spotlight_js.php">&…
<a
href="http://www.chiefdelphi.com/"
title="http://www.chiefdelphi.com/"><img
src="http://furc.zapto.org/wiki/stylesheets/monobook/external.png"…
class="urlexpansion">
(<i>http://www.chiefdelphi.com/</i>)</span>';
return $output;
}
(This is actually in use on "http://furc.zapto.org/wiki/", using the
tag <randomquote>) I think the code that handles the output doesn't
preserve things within <script> tags, but it will preserve attributes.
So the way to work around this problem is to keep the javascript in an
external file & call it via an extension. Note that the call *must* be on a
single line to make this work.
al.
-----Original Message-----
From: Giovanni [mailto:gputignano@tiscali.it]
Sent: Monday, 20 December 2004 12:23 a.m.
To: Jamie Bliss; MediaWiki announcements and site admin list
Subject: Re: [Mediawiki-l] Java Script
I want to use JavaScript in a wiki that I use to create eBay insertion so
I'm the only that use that wiki.
I would like to know how to unblock <script> tag for the purpose I said
above.
Thanks,
Giovanni
_______________________________________________
MediaWiki-l mailing list
MediaWiki-l(a)Wikimedia.org
http://mail.wikipedia.org/mailman/listinfo/mediawiki-l