문제

Can I give a XBL handler a name, so I can call it from my javascript like I do with XBL methods?

도움이 되었습니까?

해결책

It seems not, but you can create an XBL Method and call it from both your handler and other JavaScript. Something like:

  <handler event="mouseover">
    this.handleMouseOver();
  </handler>
  ...
  <method name="handleMouseOver">
    <body>...

  //and in javascript code:
  yourObj.handleMouseOver();
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top