Opened 13 years ago

Last modified 9 years ago

#2238 closed defect

Dialog: consecutive Dialog hide and show issue — at Version 5

Reported by: guest Owned by:
Priority: high Milestone: 1.6
Component: Dijit Version: 0.4.1
Keywords: Cc:
Blocked By: Blocking:

Description (last modified by bill)

Creating 2 dialog boxes and consecutively showing and hiding of each leads to a show() that displays nothing with greyed back ground.

example. Click link over and over till issue.

			dojo.require("dojo.widget.*");
			dojo.addOnLoad(onload);
			function onload()
			{
			var parentnode = document.createElement("div");
			var srcNode = document.createElement("div");
			parentnode.appendChild(srcNode);
			dlg1=dojo.widget.createWidget("Dialog",{toggle:"fade"},srcNode);
			dlg1.setContent("<a href='#' onclick='dlg2test()'> dlg1 </a>");

			var srcNode2 = document.createElement("div");
			parentnode.appendChild(srcNode2);

			dlg2=dojo.widget.createWidget("Dialog",{toggle:"fade"},srcNode2);
			dlg2.setContent("<a href='#' onclick='dlg1test()'> dlg2 </a>");
				
			dlg1.show();
			
			}
			function dlg1test()
			{
				dlg2.hide();
				dlg1.show();
			}
			function dlg2test()
			{
				dlg1.hide();	
				dlg2.show();
			}

Change History (5)

comment:1 Changed 13 years ago by bill

Component: WidgetsDijit
Description: modified (diff)
Milestone: 1.0
Owner: changed from bill to koranteng

comment:2 Changed 12 years ago by bill

Milestone: 1.02.0

comment:3 Changed 12 years ago by bill

Owner: koranteng deleted

comment:4 Changed 12 years ago by alex

Milestone: 2.01.3

Milestone 2.0 deleted

comment:5 Changed 11 years ago by bill

Description: modified (diff)
Milestone: 1.3future
Summary: Consecutive Dialog hide and show issueDialog: consecutive Dialog hide and show issue

Yes, I assume the problem is that you are trying to show the second dialog before the first one has finished disappearing (or vice-versa).

Note: See TracTickets for help on using tickets.