webglade

JavaScript library to dynamically create XUL GUI from Glade XML files
git clone https://logand.com/git/webglade.git/
Log | Files | Refs | README | LICENSE

htv3.js (405B)


      1 function main() {
      2   loadXml
      3   ('htv3.glade',
      4    function (glade) {
      5      var widgets = parseGlade(glade);
      6      wbuild(document.documentElement, [ widgets['window1'] ]);
      7    });
      8 };
      9 
     10 WHANDLER['update'] =
     11 function () {
     12   var apples = wget('apples');
     13   var bananas = wget('bananas');
     14   var total = wget('total');
     15   wsetp
     16   (total, 'value',
     17    '' + wgetp(apples, 'value') + ' + ' + wgetp(bananas, 'value'));
     18 };
     19