Here's my code for opening/closing a popup:

function openEditor(){
            var Application =  {
                getNewId: function() {
                return "window_id_#hash(now())#";
                 }
            }
            if (FCK !=null) {FCK.destroy();}
            var FCK = new Window(Application.getNewId(), {className: "theme1", 
title: "Personal Stuff Editor", width:800, height:325, resizable: true, url: 
"SFFCKeditor.cfm?username=#url.username#", showEffect:Effect.BlindDown, 
hideEffect: Effect.SwitchOff ,showEffectOptions: {duration:.5}});
            FCK.setDestroyOnClose();
            FCK.showCenter(true); 
        }

This works for the first time the popup shows.  When I close it, I get an error 
message opening it again that the window ID is already in the DOM.  I am using 
setDestroyOnClose(); but it's not working and the window won't close until i 
refresh the page.

any ideas?

Thanks!
Chris

 
---------------------------------
Have a burning question? Go to Yahoo! Answers and get answers from real people 
who know.
_______________________________________________
Javawin mailing list
[email protected]
http://mail.xilinus.com/mailman/listinfo/javawin_xilinus.com

Reply via email to