tmw
10-04-2007, 02:40 AM
I'm having a problem selecting values from a floating list. In the example below if I select the button, the floating list is displayed. I then select the first item (value1) in the list, now I select the button again and try to select the last item in the list (value7), onmouse down the list jumps back to the first page and select (value4). Any ideas what I'm missing?
Thanks.
<canvas width="100%" height="100%">
<dataset name="data1">
<result>
<vv key='f1' val='value1' />
<vv key='f2' val='value2' />
<vv key='f3' val='value3' />
<vv key='f4' val='value4' />
<vv key='f5' val='value5' />
<vv key='f6' val='value6' />
<vv key='f7' val='value7' />
</result>
</dataset>
<view>
<floatinglist name="mylist" visible="false" shownitems="4">
<textlistitem datapath="data1:/result/vv"
text='$path{"@val"}'
value='$path{"@key"}' />
<method event="onselect">
this.setAttribute('visible', false);
</method>
</floatinglist>
<button>show
<method event="onclick">
parent.mylist.setAttribute('visible', true);
</method>
</button>
</view>
</canvas>
Thanks.
<canvas width="100%" height="100%">
<dataset name="data1">
<result>
<vv key='f1' val='value1' />
<vv key='f2' val='value2' />
<vv key='f3' val='value3' />
<vv key='f4' val='value4' />
<vv key='f5' val='value5' />
<vv key='f6' val='value6' />
<vv key='f7' val='value7' />
</result>
</dataset>
<view>
<floatinglist name="mylist" visible="false" shownitems="4">
<textlistitem datapath="data1:/result/vv"
text='$path{"@val"}'
value='$path{"@key"}' />
<method event="onselect">
this.setAttribute('visible', false);
</method>
</floatinglist>
<button>show
<method event="onclick">
parent.mylist.setAttribute('visible', true);
</method>
</button>
</view>
</canvas>