[pmwiki-users] Problem with 2+ inline "input select"s
Jiri
mail at revida.sk
Wed Jan 24 18:13:08 CST 2007
I don't say it's a bug - it's a behavior that is good to know about.
In my JITS project is in
Projekty.JITScfg page (which is the customisation for that group)
[[#Priority]]
(:include Forms.JITScfgS #Priority#Priorityend:)
(:input select name="Priority" value="4-low" label="low":)
(:input select name="Priority" value="3-medium" label="medium":)
[[#Priorityend]]
and in Forms.JITScfgS page (which is a basement JITS config page)
[[#Priority]]
(:input select name="Priority" value="{*$:Priority}"
label="{*$:Priority}":)
(:input select name="Priority" value="*" label="all":)
[[#Priorityend]]
IMO the (:include:) statements are processed, resulting in
[[#Priority]]
[[#Priority]]
(:input select name="Priority" value="{*$:Priority}"
label="{*$:Priority}":)
(:input select name="Priority" value="*" label="all":)
[[#Priorityend]]
(:input select name="Priority" value="4-low" label="low":)
(:input select name="Priority" value="3-medium" label="medium":)
[[#Priorityend]]
So the first [[#Priorityend]] anchor is between the options and it works
nice!
It works if the (:include...:) is the first and the only inclusion in
the control.
See the demo at http://www.revida.sk/wiki/index.php/Projekty/ToDo
username Test
pasword test
The HTML reads:
<td valign='top'>
<p><a name='Priority' id='Priority'></a>
<select name='Priority' class='inputbox'>
<option value='*'>*</option>
<option value='*'>all</option>
<option value='4-low'>low</option>
<option value='3-medium'>medium</option>
<option value='2-high'>high</option>
<option value='1-URGENT'>URGENT</option>
</select>
</p></td>
The anchors except the first one are omitted in the source text.
Regards,
Jiri
Patrick R. Michaud napsal(a):
> On Wed, Jan 24, 2007 at 04:37:57PM +0100, Jiri Hladůvka / OBUTEX wrote:
>> There is a simmilar problem - a blank line or somesthing else between
>> two options creates 2 selectboxes though the selectbox-name is the same.
>> It was reported several days ago but with no response - see
>> http://www.pmwiki.org/wiki/Test/InputSelectJiri
>>
>> (:input select name=abc value=1:)
>>
>> (:input select name=abc value=2:)
>
> The problem with the (:input select:) markups on that page is that
> there's an anchor in between the (:input:) markups (coming from
> the (:include:) directive). The markup on that page reads:
>
> (:if true:)
> (:include {$Group}.{$Name} #a1#a1e:)
> (:if:)
> (:input select name="A" 1 A1:)
> (:input select name="A" 2 A2:)
> (:input select name="A" 3 A3:)
> (:if true:)
> (:include {$Group}.{$Name} #a2#a2e:)
> (:if:)
>
> After PmWiki processes the (:if:) directives, we have
>
> (:include {$Group}.{$Name} #a1#a1e:)
> (:input select name="A" 1 A1:)
> (:input select name="A" 2 A2:)
> (:input select name="A" 3 A3:)
> (:include {$Group}.{$Name} #a2#a2e:)
>
> Then, the (:include:) statements are processed, resulting in
>
> [[#a1]]
> (:input select name="A" 4 insertedA4:)
> (:input select name="A" 1 A1:)
> (:input select name="A" 2 A2:)
> (:input select name="A" 3 A3:)
> [[#a2]]
> (:input select name="A" 5 insertedA5:)
>
> Because of the [[#a2]] anchor (coming from the included text), the
> (:input select:) gets displayed as two separate input controls.
>
> I'm not classifying this as a bug just yet -- I'm not sure that
> (:input select:) really needs to be able to work across (:includes:)
> like this.
>
> Pm
>
> _______________________________________________
> pmwiki-users mailing list
> pmwiki-users at pmichaud.com
> http://www.pmichaud.com/mailman/listinfo/pmwiki-users
More information about the pmwiki-users
mailing list