tags:

views:

134

answers:

1

I'm working with XUL, and below is abasic slider/scale implementation:

<scale value="1" min="1" max="10" increment="1"/>

However I want a numbox next to it which displays the value selected in the slider, and maybe I didn't look hard enough in the XUL tutorial, but I couldn't find a feasible answer.

A: 
<?xml version="1.0"?>
<?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
<window id="yourwindow"
        xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"&gt;
  <scale value="1" min="1" max="10" increment="1" id="a"/>
  <textbox readonly="true" observes="a"/>
</window>
Nickolay