Login Register

How to show Dialog widget without push the button?

I have the problem with widget Dialog. I have tried to create dialog widget and after that to show Dialog. I want to open dialog without push button, but it didn't work. How to do this?

Programmatically: ...

Programmatically:
...
var myDialogNode = document.createElement("div");
var myDialog = new dijit.Dialog({
id: "myDialog",
title: "Title",
refocus: false
}, myDialogNode);
myDialog.show();
...
nic

i win.

new dijit.Dialog({ title:"foo" }).show();

all dijits take null as a node, in which case it will be created (no need for the createElement call)

;)

:) nic

:)
nic