Ross Wan’s World!

Java, Python, Ajax, PHP and Linux.

  • Subscribe

  • 存档

  • 分类

  • 链接

Dojo: Dialog 的 onClose 事件

Posted by Ross Wan on 三月 6, 2009

对于dijit.Dial0g 为说,是没有 onClose 事件的,当你关闭它,只是将它隐藏而已。所以,应该用 hide 事件来代替。如:

var dialog = dijit.byId("fooDialog");
dialog.connect(dialog, "hide", function(e){
     /* do every thing here */
});

当 dialog 调用 hide() 隐藏自身时,会触发事件。

回复

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <pre> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>