8.5.1 - dojo dialog

Hi,

In a previous post Luc described a nice way to create a dialogbox based on the dojo dialog widget:

http://www-10.lotus.com/ldd/nd85forum.nsf/5f27803bba85d8e285256bf10054620d/d2bf3066c6da0c87852575b6002ea177?OpenDocument

In 8.5.1 it stopped working and after some hours i’ve found two little things:

  1. it seems that after creating a dialog programatically the opacity of the content node is set back to 0, so it becomes invisible (only the underlay is visible)

It can be fixed with adding the next line after calling show():

dojo.style(dijit.byId(“”).domNode, “opacity”, 1);

  1. if I partially refresh the page with a dialog inside, then links/actions/buttons stop working when I try to reopen the dialog

By changing the line

dialogWidget.destroyRecursive(true)

to

dialogWidget.destroyRecursive(false)

the issue is fixed.

There were some modifications in the dojo API from version 1.1.1 to 1.3.2 and though the method signature for destroyRecursive remained the same the boolean argument means a different thing.

Regards,

Tibor