Login Register

absolute

Position Dialog relative to a node

How do i create a Dialog box and position it relative to an existing element/node?
I want to do it in the code (shown below), as against using tags. In the sample code below, i would like to open the Dialog right below the link to "New".
I am only able to get the dialog box come up in the dead center of the page.
Thanks.

Version: Dojo 1.0
Usage:

function addNew() {
    dijit.byId('addDlg').show();
}

New

Syndicate content