Thread:Project:Support desk/I need html forms and Javascript in MediaWiki - Extension:CalcII doesn't work on newer MediaWiki Versions/reply (2)

Hello Florian,

thank you for the links and the hint with the classes. I now have the following code (where calculator.js has a function "delete_all) but get an error "delete_all" is null:

setHook( 'calc', 'renderCalculator');

return true; } function renderCalculator( $input, array $args, Parser $parser, PPFrame $frame) { global $wgOut;

$wgOut->addScriptFile(__DIR__ . '/calculator.js', $wgStyleVersion); $wgOut->AddHTML(''); $wgOut->AddHTML(' '); $wgOut->AddHTML(' '); $wgOut->AddHTML(' '); }

When using mediawiki classes, do I have to import them with "$wgAutoloadLocalClasses"? I already studied a lot of other extensions but didn't find out how to get it work.