[Pmwiki-users] Re: include javascript in wiki page
Patrick R. Michaud
pmichaud
Sun Mar 14 08:23:54 CST 2004
On Sun, Mar 14, 2004 at 10:02:44AM +0100, Albi Rebmann wrote:
> Patrick R. Michaud schrieb:
>
> Any idea how I can inluce following script, which will show weather:
>
> <script language="JavaScript"
> src="http://home.wetteronline.de/cgi-bin/nph-h?PLZ=70736&PLZN=Fellbach&L=de">
>
> </script>
Add the following to local/config.php:
$InlineReplacements['/\\[\\[$Weather\\]\\]/'] =
'<script language="JavaScript" src="http://home.wetteronline.de/cgi-bin/nph-h?PLZ=70736&PLZN=Fellbach&L=de"></script>'';
This will enable the markup "[[$Weather]]" which will produce the HTML output
requested above.
Pm
More information about the pmwiki-users
mailing list