Name: ScriptTest FullName: WWW Scripting Implemention Testing Plugin URI: IW:SuikaWiki:ScriptTest { Name: wikiform_input/script-test-supported-list FullName: ScriptTest: Test whether the User Agent is supporting scripting with SCRIPT element having given attribute value. Format: my @types = split /,/, $o->escape($p->{type}); my @langs = split /,/, $o->escape($p->{language}); my @slangs = split /,/, $p->{script_lang}; my $id = 'wikiform__'.$o->escape ($p->{id}); my $l = $#types > $#langs ? $#types : $#langs; $l = $#slangs if $#slangs > $l; $r = qq(\n); $r .= qq(\n) if $p->{caption}; $r .= qq(\n); for my $i (0..$l) { $r .= qq(\n\n); } $r .= "
@{[$o->escape($p->{caption})]}
typelanguage?
$types[$i]$langs[$i]); $r .= '")\n); } elsif ($slangs[$i] eq 'perlscript') { $r .= qq(\$window->document->write ('PS('.sprintf('%vd',\$^V).'): OK!');\n); } else { $r .= qq(document.write ('JS: OK!');\n); } $r .= qq(
\n"; } { Name: wikiform_template/script-test-supported-list FullName: ScriptTest: Output the result table of wikiform_input/script-test-supported-list. Format: for (sort keys %{$o->{argv}}) { if (/^wikiform__$p->{source}__([^_]*)_(.*)$/) { $r .= qq(,$1,$2,$o->{argv}->{$_}\n); } } } POD:LICENSE: Copyright 2003 Wakaba %%GNUGPL2%%