Fog Creek Software
Discussion Board




Knowledge Base
Documentation
Terry's Tips
Darren's Tips

Mangled javascript with 2.0.19

CD is mangling my JS if I view the page in normal view see example below - and yes its still there when I publish.

I can only find reference to this on here as a bug with previous versions. Has it been fixed or not?

Thanks

<SCRIPT language="JavaScript">
<!-- hide me from older browsers
newWindow = new Object;
newWindow.closed = true;
function newWindowopener(word, def, iwidth, iheight)
{
      if (!newWindow.closed) { 
        newWindow.close();
      }
      newWindow = window.open("","","height=500,width=420");
      newWindow.document.write("<HTML><HEAD><TITLE>");
      newWindow.document.write(word);
      newWindow.document.write("</TITLE>");
      newWindow.document.writeln("</HEAD><BODY BGCOLOR=#ffffff>"); newWindow.document.writeln("<P align=\"center\"><cd:preserve whitespace="" /><IMG src=Articles/Images/"+def+" width=\""+iwidth+"\" height=\""+iheight+"\"><cd:preserve whitespace="" /></P><cd:preserve whitespace="" /><br>"); newWindow.document.writeln("<FORM><cd:preserve whitespace="" /><CENTER><cd:preserve whitespace="" /><INPUT TYPE=\"BUTTON\" VALUE=\"Close\" onClick=\"self.close()\">"); newWindow.document.writeln("</CENTER><cd:preserve whitespace="" /></FORM>"); newWindow.document.close(); newWindow.focus();<cd:preserve whitespace="CLTSS" /> // show me --><cd:preserve whitespace="SCLTSS" /> }<cd:preserve whitespace="CLTSS" /> </SCRIPT>

Iain F
Wednesday, February 18, 2004

http://discuss.fogcreek.com/CityDesk/default.asp?cmd=show&ixPost=8064&ixReplies=4

May help.

tk
Wednesday, February 18, 2004

*  Recent Topics

*  Fog Creek Home