dyarosh
asked on
Help with browser differences
I am writing an electronic card system for my company. Everything is going great but now I have one problem between IE and Firefox. When you view the card that was sent to you there is a Close Window button at the bottom. This button works in IE but not in Firefox. I can't figure out why. Here is the code from each browser. Any help is greatly appreciated.
FIREFOX
========
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Exemplar CE eCards</title>
<link rel="stylesheet" href="eCardsStyleSheet.css " type="text/css" title="hires"/>
</head>
<body >
<p align="center">
<object classid="clsid:D27CDB6E-AE 6D-11cf-96 B8-4445535 40000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="600" height="400">
<param name="movie" value="Cards/exemplar_than kyou.swf">
<param name="quality" value="high">
<embed src="Cards/exemplar_thanky ou.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockw ave-flash" width="600" height="400"></embed>
</object>
</p>
<p align="center">
<textarea name="textarea" cols="70" rows="6">Another Test</textarea>
</p>
<p align="center" class="error"> </p>
<p align="center">
<input name="Close" type="submit" id="Close" value="Close Window" onclick="javascript:window .close();" >
</p>
</body>
</html>
IE 7.0
======
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Exemplar CE eCards</title>
<link rel="stylesheet" href="eCardsStyleSheet.css " type="text/css" title="hires"/>
</head>
<body >
<p align="center">
<object classid="clsid:D27CDB6E-AE 6D-11cf-96 B8-4445535 40000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="600" height="400">
<param name="movie" value="Cards/exemplar_than kyou.swf">
<param name="quality" value="high">
<embed src="Cards/exemplar_thanky ou.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockw ave-flash" width="600" height="400"></embed>
</object>
</p>
<p align="center">
<textarea name="textarea" cols="70" rows="6">Another Test</textarea>
</p>
<p align="center" class="error"> </p>
<p align="center">
<input name="Close" type="submit" id="Close" value="Close Window" onclick="javascript:window .close();" >
</p>
</body>
</html>
FIREFOX
========
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Exemplar CE eCards</title>
<link rel="stylesheet" href="eCardsStyleSheet.css
</head>
<body >
<p align="center">
<object classid="clsid:D27CDB6E-AE
<param name="movie" value="Cards/exemplar_than
<param name="quality" value="high">
<embed src="Cards/exemplar_thanky
</object>
</p>
<p align="center">
<textarea name="textarea" cols="70" rows="6">Another Test</textarea>
</p>
<p align="center" class="error"> </p>
<p align="center">
<input name="Close" type="submit" id="Close" value="Close Window" onclick="javascript:window
</p>
</body>
</html>
IE 7.0
======
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Exemplar CE eCards</title>
<link rel="stylesheet" href="eCardsStyleSheet.css
</head>
<body >
<p align="center">
<object classid="clsid:D27CDB6E-AE
<param name="movie" value="Cards/exemplar_than
<param name="quality" value="high">
<embed src="Cards/exemplar_thanky
</object>
</p>
<p align="center">
<textarea name="textarea" cols="70" rows="6">Another Test</textarea>
</p>
<p align="center" class="error"> </p>
<p align="center">
<input name="Close" type="submit" id="Close" value="Close Window" onclick="javascript:window
</p>
</body>
</html>
try just onclick="window.close();"
ASKER
Didn't work. Here is a link that you can use to see how it works in IE but not in Firefox.
http://www.development.exemplarce.org/eCards/PreviewCard.asp?code=5111142007121141&rid=126
http://www.development.exemplarce.org/eCards/PreviewCard.asp?code=5111142007121141&rid=126
onclick="window.open('','_ parent','' );window.c lose();"
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.