Below is my code this.openEditBookmarkDialog('', ''); this.initializeJSONnOBJECT(tmpElem); Here what I want first open dialog openEditBookmarkDialog(which will automatically call functions added in onit.) and then execute function initializeJSONnOBJECT. But what happening is first it executes function initializeJSONnOBJECT and then open the dialog.
is there way to achieve this?