Daemonite: When CFDUMP has no style Archive

Daemonite: When CFDUMP has no style Archive


Thursday, March 10, 2005
When CFDUMP has no style

When you use CFDUMP you can sometimes get outputs that have no style attached. For example, if you use CFDUMP within a CFMAIL tag and also dump debugging data onto the screen.

The following code will display the dump correctly in the cfmail, but the screen version will lose all style sheet properties or vice/versa depending on order of execution.

To fix this you need to reset the request scope variable to trick coldfusion into thinking it hasn't done a dump on the page and therefore reset the stylesheet:

Posted by modius at 10:26 PM | Permalink
Trackback: http://blog.daemon.com.au/cgi-bin/dmblog/mt-tb.cgi/269

Comments

Yep, I blogged about this a while ago:

http://ray.camdenfamily.com/index.cfm?mode=entry&entry=20CBD1F9-D071-1824-EC1783FE31AB9B3B

Don't you read my blog?!?! ;)

Also, this is fixed in CFMX7.

Posted by: Raymond Camden on March 11, 2005 01:49 AM

Bah.. got a bunch of old things kicking around in my to be blogged folder -- trust you to beat me to it Ray :)

Posted by: Geoff Bowers on March 11, 2005 08:10 AM