[Javascript] javascript problem
Bill Marriott
bill.marriott at optusnet.com.au
Fri Jul 6 23:07:02 CDT 2001
RE: [Javascript] javascript problemBob,
The funning thing is when I replaced it with the following code the problem went away.
***********************************************************************
function ClosePop()
{
if (typeof(cropcheckHelp) != "undefined")
{
if (cropcheckHelp.closed == false)
{
cropcheckHelp.close();
}
}
if (typeof(ReportPick) != "undefined")
{
if (ReportPick.closed == false)
{
ReportPick.close();
}
}
} //End of function
*************************************************************************************************
I think it must have been something to do with the 2 lots of &&'s. It could handle the ones in the first if, but fell
over when it came to the next lot. Weird!
Thanks for your interest.
Bill
----- Original Message -----
From: Filipiak, Bob (Contractor)
To: 'javascript at LaTech.edu'
Sent: Friday, July 06, 2001 10:20 PM
Subject: RE: [Javascript] javascript problem
We need to see more code. Like the code that opens each popup. What exactly is the error when there are two if's? The code you listed in this message should not cause any problems based on the syntax.
Bob Filipiak (Contractor)
MCP
-----Original Message-----
From: Bill Marriott [mailto:bill.marriott at optusnet.com.au]
Sent: Friday, July 06, 2001 1:58 AM
To: javascript at LaTech.edu
Subject: [Javascript] javascript problem
Hi again,
The following script works in IE 5.5 but creates an error in IE 5.
************************************************
function ClosePop()
{
if (ReportPick && !ReportPick.closed)
{
ReportPick.close();
}
if (cropcheckHelp && !cropcheckHelp.closed)
{
cropcheckHelp.close();
}
} //End of function
**************************************************
It works in IE 5 , if I only want to check one popup, (ie one if statement)
but not if there are 2.
Can anyone see what I have done wrong?
Bill
_______________________________________________
Javascript mailing list
Javascript at LaTech.edu
http://www.LaTech.edu/mailman/listinfo/javascript
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.evolt.org/pipermail/javascript/attachments/20010707/f4850454/attachment.htm>
More information about the Javascript
mailing list