Hi,
Try to change your doCloseDialog to:
Code: JavaScript
function doCloseDialog()
{
window.setTimeout(
function()
{
alert(eo_GetObject('BalloonDialog').getResult());
}, 10);
}
Note it delays getResult() with a setTimeout call. This is necessary because the result code is set
after your ClientSideOnAccept is called. It is implemented this way because the dialog allows you to cancel dialog closing from your ClientSideOnAccept handler. So if you had canceled (by returning false from your handler), there would be no result set.
Thanks!