Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by gayathri on Jun 03, 2009 03:12
open dhtmlx forum
Loading window close

Hi

Is there a wayto detect if the loading window is open or closed. If i attachEvent (onClose) on the loading window and set a flag, the flag gets set and everything but the window doesnt close. To close the loading window, i am calling window,close(). The event gets fired but the window doesnt close.

 

Cheers

Gayathri

Answer posted by Support on Jun 03, 2009 05:25
>> If i attachEvent (onClose) on the loading window and set a flag
Be sure that your event handler has "return true;" at the end
some.attachEvent("onClose",function(some){
       //some code
       return true;
});

If custom handler returns any other values - it will be counted as signal to block window closing.