Hi..
-
i have given a search option in my web page, i'm opening new window to display the calender control.. My problem is When i close the Main window the calender control window is still opened.. how can i close the child window, when the parent is closing... this im using to check the closing of browser
var requireConfirm = true; window.onbeforeunload = function() { if(requireConfirm) { } }
if the calender window is opened i need to close that window before exiting the browser.. please help me asap.. thanks in advance skvs -
i have given a search option in my web page, i'm opening new window to display the calender control.. My problem is When i close the Main window the calender control window is still opened.. how can i close the child window, when the parent is closing... this im using to check the closing of browser
var requireConfirm = true; window.onbeforeunload = function() { if(requireConfirm) { } }
if the calender window is opened i need to close that window before exiting the browser.. please help me asap.. thanks in advance skvsOpen it in a modal fashion?
-
Open it in a modal fashion?
hi Paddy Boyd..thanks for reply. :-) this is how im opening it...
window.open('Calendar.aspx','calendarPopup','titlebar=0,left=470,top=100,width=300,height=225,resizable=0, toolbar=0,menubar=0,location=0, directories=0');
Can u suggest me how to open it in a modal fashion.. so that when parent window is closed, the Calender.aspx window should also be closed.. -
hi Paddy Boyd..thanks for reply. :-) this is how im opening it...
window.open('Calendar.aspx','calendarPopup','titlebar=0,left=470,top=100,width=300,height=225,resizable=0, toolbar=0,menubar=0,location=0, directories=0');
Can u suggest me how to open it in a modal fashion.. so that when parent window is closed, the Calender.aspx window should also be closed..http://javascript.about.com/library/blmodal.htm[^]
function modalWin() {
if (window.showModalDialog) {
window.showModalDialog("xpopupex.htm","name",
"dialogWidth:255px;dialogHeight:250px");
} else {
window.open('xpopupex.htm','name',
'height=255,width=250,toolbar=no,directories=no,status=no,
menubar=no,scrollbars=no,resizable=no ,modal=yes');
}
}Venky
-
i have given a search option in my web page, i'm opening new window to display the calender control.. My problem is When i close the Main window the calender control window is still opened.. how can i close the child window, when the parent is closing... this im using to check the closing of browser
var requireConfirm = true; window.onbeforeunload = function() { if(requireConfirm) { } }
if the calender window is opened i need to close that window before exiting the browser.. please help me asap.. thanks in advance skvsskvs wrote:
Subject:Hi..
That is not the proper subject of your question.
cheers, Abhijit Think Sharp | Code Sharp | C Sharp
-
i have given a search option in my web page, i'm opening new window to display the calender control.. My problem is When i close the Main window the calender control window is still opened.. how can i close the child window, when the parent is closing... this im using to check the closing of browser
var requireConfirm = true; window.onbeforeunload = function() { if(requireConfirm) { } }
if the calender window is opened i need to close that window before exiting the browser.. please help me asap.. thanks in advance skvswindow.opener='self'; window.close(); or use. function closeAllchildren() { for(var n=0;n<children.length;n++)> {children[n].close(); } //Oh, and close self! window.close(); }
Kaushik Rabadiya