For Programmers: Free Programming Magazines  


Home > Archive > PHP Language > January 2006 > Closing a window in firefox browser closes all other windows









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Closing a window in firefox browser closes all other windows
karthi

2006-01-31, 3:59 am

Hi,

I have invoked a html page from an another html page by the
following code

if (args.indexOf("APPLaunched") == -1) {
var url = "runAPP.shtml" + location.search +
"&APP=sdm&GIF=rsdm&APPLET=XDM&proxyCodeBase=" + proto + "//" + ipAddr +
"/";
winrunapp = window.open(url, calcWindowArgs(640,560));

if (winrunapp == null || typeof(winrunapp) == "undefined") {
alert("You have an active popup blocker. Please disable it for to
function.");
}
if (parent.location.search && (parent.location.search.length > 0))
{
extraArg = "&APPLaunched=1";
} else {
extraArg = "?APPLaunched=1";
}
parent.location.href = parent.location.href + extraArg;
}
location.href = "home_ui.html";


If I am trying to close the newly invoked runAPP.shtml (child window),
it is closing all the other browser windows exiting all other
applications. These problems persist only in firefox and Netscape only.

Please provide me with solutions to avoid closing all other windows.

Thanks in advance,
Karthi

ZeldorBlat

2006-01-31, 6:56 pm


karthi wrote:
> Hi,
>
> I have invoked a html page from an another html page by the
> following code
>
> if (args.indexOf("APPLaunched") == -1) {
> var url = "runAPP.shtml" + location.search +
> "&APP=sdm&GIF=rsdm&APPLET=XDM&proxyCodeBase=" + proto + "//" + ipAddr +
> "/";
> winrunapp = window.open(url, calcWindowArgs(640,560));
>
> if (winrunapp == null || typeof(winrunapp) == "undefined") {
> alert("You have an active popup blocker. Please disable it for to
> function.");
> }
> if (parent.location.search && (parent.location.search.length > 0))
> {
> extraArg = "&APPLaunched=1";
> } else {
> extraArg = "?APPLaunched=1";
> }
> parent.location.href = parent.location.href + extraArg;
> }
> location.href = "home_ui.html";
>
>
> If I am trying to close the newly invoked runAPP.shtml (child window),
> it is closing all the other browser windows exiting all other
> applications. These problems persist only in firefox and Netscape only.
>
> Please provide me with solutions to avoid closing all other windows.
>
> Thanks in advance,
> Karthi


This has nothing to do with PHP. Try a JavaScript newsgroup.

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2009 codecomments.com