I try to avoid IIF, consider using <cfif> and
<cf_htmlhead></cf_htmlhead>. But if you insist:

<cfhtmlhead text="<style
type=""text/css"">#IIf(request.fieldValues.SQLMethod EQ 
'insertSelect',
DE('####extrasInsertSelect {display: block;}'),
DE('####extrasInsertSelect
{display: none;}'))#</style>">

Pascal

-----Original Message-----
From: Gyrus [mailto:[EMAIL PROTECTED]]
Sent: maandag 28 januari 2002 15:19
To: CF-Talk
Subject: pound signs inside DE('') - help!


Having problems with some pound signs / hash marks. Trying to write
style tag into the HTML <head> tag as follows:

<cfhtmlhead text="<style
type=""text/css"">#IIf(request.fieldValues.SQLMethod EQ 
'insertSelect',
DE('#extrasInsertSelect {display: block;}'), DE('#extrasInsertSelect
{display: none;}'))#</style>">

This throws an expression evaluation error, and I've tracked the problem
down through elimination to the pounds signs (as ID selectors). Escaping
them through doubling doesn't seem to work - nothing does! Even
DE(chr(35)&'extrasInsertSelect etc.') doesn't.

Any offers?

- Gyrus
______________________________________________________________________
Dedicated Windows 2000 Server
  PIII 800 / 256 MB RAM / 40 GB HD / 20 GB MO/XFER
  Instant Activation � $99/Month � Free Setup
  http://www.pennyhost.com/redirect.cfm?adcode=coldfusiona
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to