[pmwiki-users] Form Input missing 4 types !!!!
Patrick R. Michaud
pmichaud at pobox.com
Mon Aug 28 10:59:51 CDT 2006
On Mon, Aug 28, 2006 at 10:20:56AM -0500, Patrick R. Michaud wrote:
> I'd need to see an example where someone is actively developing an
> application with PmWIki that will benefit from the existence
> of an (:input button:), as opposed to a hypothetical example
> where it might be useful.
> [...]
> No, because PmWiki doesn't provide any way for an author to
> add an "onClick" attribute to those button types.
> [...]
> All in all, it seems like an *awful* lot of coding for a feature
> for which we don't even have a working useful example yet.
> PmWikiPhilosophy #3 definitely applies here.
However, it's entirely possible for a site administrator to
quickly add the (:input button:) and "onclick" capabilities
if they want it and are willing to accept the security risks
and other difficulties of 'onclick'.
In local/config.php:
## identify the attributes we allow in input tags (adds 'onclick'
## to default set)
$InputAttrs = array('name', 'value', 'id', 'class', 'rows', 'cols',
'size', 'maxlength', 'action', 'method', 'accesskey',
'checked', 'disabled', 'readonly', 'enctype', 'src', 'alt',
'onclick');
## add (:input button ...:)
$InputTags['button'][':html'] = "<input type='button' \$InputFormArgs />";
$InputTags['button']['class'] = 'inputbutton';
Pm
More information about the pmwiki-users
mailing list