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(
type | language | ? |
---|---|---|
$types[$i] | $langs[$i] | \n); $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( |