[pmwiki-users] input default not being generated
Patrick R. Michaud
pmichaud at pobox.com
Tue Jan 23 10:43:55 CST 2007
On Tue, Jan 23, 2007 at 04:21:04PM -0000, marc wrote:
> When I hard-code the following:
>
> (:input default name=currency value=USD:)
> (:input select name=currency value=GBP:)
> (:input select name=currency value=USD:)
> (:input select name=currency value=EUR:)
>
> the expected option is selected. When I generate the dropdown via markup
> with, say:
>
> function currencySelect() {
> $out = "(:input default name=currency value=USD:)";
> $out .= "(:input select name=currency value=GBP:)";
> $out .= "(:input select name=currency value=USD:)";
> $out .= "(:input select name=currency value=EUR:)";
> return $out;
> }
>
> the 'selected' option is not generated (in HTML). I am using 'split' for
> the 'when' parameter.
How/where is currencySelect() being called?
You might need to use '<input-select' as the $when parameter,
since the (:input select:) markup rule occurs before split
(needed in order to be able to read multiple statements
across newlines).
Pm
More information about the pmwiki-users
mailing list