The example provided in the section "5.1. The
XBLImplementation Interface" seems to be broken.

<xbl xmlns="http://www.w3.org/ns/xbl";>
 <binding id="clock">
  <implementation>
   ({
    xblEnteredDocument: function () {
      this.timer = setInterval(update, 1000);
    },
    xblLeftDocument: function () {
      clearInterval(this.timer);
    },
    update: function () {
     
this.shadowTree.getElementById('clock-value').textContent
= new Date();
    },
   })
  </implementation>
  <template><div id="clock-value"></div></template>
 </binding>
</xbl>

The reference to "update" function expected, but there
is no one declared (there is only implementation
member with such name). 
JS Error: update is not defined

Sergey Ilinsky/



      ___________________________________________________________ 
Want ideas for reducing your carbon footprint? Visit Yahoo! For Good  
http://uk.promotions.yahoo.com/forgood/environment.html


Reply via email to