FCK 2.0 RC1 works perfectly on XP/IE6. But when I tried on win98 (SE 4.10.2222 A) and IE 6.0.2800.1106 it crashes. The code is quite simple: main window has a link to another page, which is a pop-up window. This popup window has FCK toolbar using textarea and a close button. When close button is pushed - crash! I read something on this forum about using submit button named submit - I change the name, but it still crashes:
<head>
<title>Untitled</title>
<script type="text/javascript" src="FCKeditor/fckeditor.js"></script>
<script type="text/javascript">
window.onload = function()
{
var oFCKeditor = new FCKeditor( 'MyTextarea' ) ;
oFCKeditor.BasePath = sBasePath ;
oFCKeditor.ToolbarSet="MARS";
oFCKeditor.ReplaceTextarea() ;
}
</script>
</head>
<body>
<h1>Hello World from FCK</h1>
<form method="post" action="z_test1.php" name="theForm">
<input type="hidden" name="action">
<textarea id="MyTextarea" name="MyTextarea">This is <b>the</b> initial value.</textarea>
<input type="submit" name="b1" value ="Cancel-1" OnClick="document.theForm.action.value='Cancel1';">
<input type="submit" name="b2" value ="Cancel-2" OnClick="window.close();return false;">
<p>Cancel1 closes window indirectly</p>
<p>Cancel2 closes window directly (server does not know)</p>
</form>
</body>
<head>
<title>Untitled</title>
<script type="text/javascript" src="FCKeditor/fckeditor.js"></script>
<script type="text/javascript">
window.onload = function()
{
var sBasePath = "<?php print $basedir;?>/FCKeditor/";
var oFCKeditor = new FCKeditor( 'MyTextarea' ) ;
oFCKeditor.BasePath = sBasePath ;
oFCKeditor.ToolbarSet="MARS";
oFCKeditor.ReplaceTextarea() ;
}
</script>
</head>
<body>
<h1>Hello World from FCK</h1>
<form method="post" action="z_test1.php" name="theForm">
<input type="hidden" name="action">
<textarea id="MyTextarea" name="MyTextarea">This is <b>the</b> initial value.</textarea>
<input type="submit" name="b1" value ="Cancel-1" OnClick="document.theForm.action.value='Cancel1';">
<input type="submit" name="b2" value ="Cancel-2" OnClick="window.close();return false;">
<p>Cancel1 closes window indirectly</p>
<p>Cancel2 closes window directly (server does not know)</p>
</form>
</body>

RE: FCK crashes in popup window on Win98/IE6