Link to home
Start Free TrialLog in
Avatar of dyarosh
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-AE6D-11cf-96B8-444553540000" 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_thankyou.swf">

      <param name="quality" value="high">
      <embed src="Cards/exemplar_thankyou.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-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">&nbsp;</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-AE6D-11cf-96B8-444553540000" 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_thankyou.swf">
      <param name="quality" value="high">
      <embed src="Cards/exemplar_thankyou.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-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">&nbsp;</p>
  <p align="center">
    <input name="Close" type="submit" id="Close" value="Close Window" onclick="javascript:window.close();">
</p>
</body>

</html>
Avatar of imitchie
imitchie
Flag of New Zealand image

try just onclick="window.close();"
Avatar of dyarosh
dyarosh

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
Avatar of Dmitrii
onclick="window.open('','_parent','');window.close();"
ASKER CERTIFIED SOLUTION
Avatar of Marc Z
Marc Z
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial