"Fossies" - the Fresh Open Source Software Archive

Member "KompoZer/res/samples/checkboxTest.xul" (2 Mar 2010, 1035 Bytes) of archive /windows/www/kompozer-0.8b3.en-US.win32.zip:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 <?xml version="1.0"?> 
    2 <?xml-stylesheet href="chrome://navigator/skin/navigator.css" type="text/css"?> 
    3 <?xml-stylesheet href="chrome://communicator/skin/bookmarks/bookmarks.css" type="text/css"?> 
    4 
    5 <!DOCTYPE window> 
    6 
    7 <window style="overflow: auto" xmlns:html="http://www.w3.org/1999/xhtml"
    8         xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" orient="vertical" 
    9         onload=""> 
   10 
   11 <html:h1>Checkbox Test 1</html:h1>
   12 
   13 <html:script>
   14 
   15 function disableOne()
   16 {
   17   var box = document.getElementById("normal");
   18   box.disabled = true;
   19 }
   20 function enableOne()
   21 {
   22   var box = document.getElementById("normal");
   23   box.disabled = false;
   24 }
   25 
   26 </html:script>
   27 
   28 <html:h3>
   29 This is a two-state checkbox test.
   30 </html:h3>
   31 
   32 <html:div>
   33   <html:hr/>
   34 </html:div>
   35 
   36 <html:label>
   37 <html:input type="checkbox" id="normal"/>Checkbox One (Normal)
   38 </html:label>
   39 
   40 <html:div>
   41   <html:hr/>
   42 </html:div>
   43 
   44 <html:button onclick="disableOne()">Disable Checkbox</html:button>
   45 <html:button onclick="enableOne()">Enable Checkbox</html:button>
   46 
   47 </window>