PDA

View Full Version : DialogBoxes and ext-yui-adapter.js reference to extjs.com



acheven
23 Apr 2007, 6:30 PM
Hi,

What's the correct way to dispose of a dialog box? I created my NewWindow object like this:



MyDialog = function(config)
{
var dialog;
dialog = new Ext.LayoutDialog("hello-dlg", { ...

// initialise dialog

this.dialog = dialog;
};
MyDialog.prototype.show = function()
{
this.dialog.show();
};


Now when i create multiple instances of MyDialog, second and following instances display "broken". i tried something along the lines of objWindow.dialog.dispose() on hide, but this did not seem to work.

Also, is there any reason for ext-yui-adapter.js (1.0 release) to contain this reference?


BLANK_IMAGE_URL:"http:/"+"/extjs.com/s.gif"

Joe
23 Apr 2007, 6:46 PM
for BLANK_IMAGE_URL see http://extjs.com/forum/showthread.php?t=4422 among other posts (search for BLANK_IMAGE_URL )

acheven
24 Apr 2007, 2:13 AM
yep, this makes sense, any idea about DialogBoxes?