How to run onLoad event for a Dojo Dialog?
问题 I have a Dojo dialog with content coming in from an ajax call. In the dialog I need an onLoad event (with parameters that are available only after the ajax call - so I cannot have the function called before myDialog.show() ) The onLoad event that I have in the body tag of my jsp which is the response from the ajax call is not being called - <body onload="new_record(${record_size}, '${id}')"> Any help/hint would be very nice. Thanks. 回答1: Dijit dialog supports an onShow method - you can do