Try preventing cfoutput around the cfloop tag:

<cfsetting enablecfoutputonly="yes">
<cfimport taglib="/farcry/farcry_core/tags/webskin" prefix="skin">
<cfscript>navFilter=arrayNew(1);navfilter[1]="status IN
(#listQualify(request.mode.lvalidstatus,"'")#)";qNav=application.factory.oTr
ee.getDescendants(objectid=application.navid.home,depth=1,afilter=navFilter)
;</cfscript>
<cfoutput>
<table cellpadding="0" cellspacing="0"><tr>
 <td><a href="index.cfm?objectid=#application.navid.home#">Home</a></td>
  </cfoutput>
  <cfloop query="qNav"><cfoutput>
  <td>
   <a href="index.cfm?objectid=#qNav.objectid#">#qNav.objectname#</a>
  </td>
</cfoutput></cfloop><cfoutput>
</tr></table>
</cfoutput>
<cfsetting enablecfoutputonly="no">

-- tim

www.toolmantim.com


J�rgen M. SKog�s spoke the following wise words on 26/03/2004 11:32 PM EST:


Hi,

I have som few problems that my cfcodes generates a hole lot of blank lines,
the example under
should generate about 30 lines, but when i check it, it's about 1000 lines.
Someone got a tip for me?
just 3% of the lines is rawcodes, the rest is blank lines with some blank
spaces.

Heres the problem:
----------------------------------------------------------------------------
---------------
<cfsetting enablecfoutputonly="yes">
<cfimport taglib="/farcry/farcry_core/tags/webskin" prefix="skin">
<cfscript>navFilter=arrayNew(1);navfilter[1]="status IN
(#listQualify(request.mode.lvalidstatus,"'")#)";qNav=application.factory.oTr
ee.getDescendants(objectid=application.navid.home,depth=1,afilter=navFilter)
;</cfscript>
<cfoutput>
<table cellpadding="0" cellspacing="0"><tr>
 <td><a href="index.cfm?objectid=#application.navid.home#">Home</a></td>
  <cfloop query="qNav">
  <td><a
href="index.cfm?objectid=#qNav.objectid#">#qNav.objectname#</a></td>
 </cfloop>
</tr></table>
</cfoutput>
<cfsetting enablecfoutputonly="no">





--- You are currently subscribed to farcry-dev as: [EMAIL PROTECTED] To unsubscribe send a blank email to [EMAIL PROTECTED]

MXDU2004 + Macromedia DevCon AsiaPac + Sydney, Australia
http://www.mxdu.com/ + 24-25 February, 2004

Reply via email to