Probelm with cfoutput / document.write JS function in Netscape 7

Giganews Newsgroups
Subject: Probelm with cfoutput / document.write JS function in Netscape 7
Posted by:  yv…@ideasdesign.com (Yvan J. Gagnon)
Date: 9 Jul 2003

I am encountering a strange problem in Netscape 7 with a CFM file I am
trying to troubleshoot (the page is working fine in NS Communicator
and IE). Below is a sample of the problematic line of javascript code.
Note that in the actual file, I've surrounded the variable
'#cookie.cookiename#' with CFOUTPUT tags:

document.write('<input type="Hidden" name="affiliate"
value="#cookie.cookiename#">');

When I load the document in Netscape 7, I get a CF Error message, like
the #cookie.cookiename# variable isn't being replaced with the actual
value (the cfoutput tags are being ignored). I suspect that it's a bug
of some kind in NS 7's implementation of the document.write javascript
function, and am hoping that there is some kind of workaround. Has
anyone else encountered this problem?  If so, is there a fix for it,
and if so, what is it?

thanks,
- yv…@ideasdesigninc.com

Replies