Hi,
I try to use JQuery code in tag extension. Following the manuals I added in extension.json:
"ResourceModules": { "ext.Iframe" : { "scripts": [ "modules/ext.Iframe.js" ] } },
in my main.php file:
class IFrame {
public static function renderIframe( $str, array $argv, Parser $parser, PPFrame $frame ) { ... $parser->mOutput->addModules('ext.Iframe'); ... }
... }
and my modules/ext.Iframe.js looks like:
jquery(document).ready(function ($) { $(document.body).append("Hello World!"); });
I would have expected to see a "Hello World!" at the end of my wiki page, but nothing appears.
So I missed something. Any ideas what?
Thanks in advance
Sigbert