PDA

View Full Version : Dialog problem in IE



ashishgandhi
19 Aug 2007, 10:36 PM
Hi all,
well i am using Basic dialog box to create a new dialog.And i am creating new dialog using onClick event.
When it opens first time its working good.and i can see the form inside dialog.next time when i open the dialog using onClick i get dialog box open but without form.all this things working fine in firefox but its having problem with IE.
i am using below function on close button of dialog.


thisDialog.addButton('Close', function() { thisDialog.hide(); }, thisDialog);
thisDialog.on('hide',function() {

if(simple)
{
simple.el.remove();
simple=null;

}
if(Emp)
{

Emp.el.remove();
Emp=null;

}
thisDialog=null;

});

ravyn23259
14 Sep 2007, 5:43 AM
I was having this problem or a similar one in IE6 - it seems you need to destroy the dialog and remove it from the DOM every time you close the dialog or the form has display issues in IE6 and won't show up at all (even though it is there).

I solved it by adding an event listener that destroys the dialog on all hide actions.


dialog.addKeyListener(27, dialog.hide, dialog);
dialog.addButton('Close', dialog.hide, dialog);

dialog.addListener("hide", function(){dialog.destroy(true)}, dialog);