• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Insert line in cfoutput

New Here ,
Oct 09, 2006 Oct 09, 2006

Copy link to clipboard

Copied

While outputting a CFQUERY, is there a way to add a horizontal line after random rows of data? The randomness is based on some if-else condition.
TOPICS
Advanced techniques

Views

409

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Oct 10, 2006 Oct 10, 2006

Copy link to clipboard

Copied

Do you mean this?

<CFIF mycondition>
<HR>
</CFIF>

You can embed ColdFusion and HTML tags inside CFOUTPUT.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Oct 10, 2006 Oct 10, 2006

Copy link to clipboard

Copied

Sorry - did not make myself clear.

I am using a table to output the query data and then want to insert a line every few rows based on a condition.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Oct 10, 2006 Oct 10, 2006

Copy link to clipboard

Copied

Use dempster's code inside a table cell:

<CFIF mycondition>
<TD COLSPAN="4">
<HR>
</TD>
</CFIF>

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Oct 10, 2006 Oct 10, 2006

Copy link to clipboard

Copied

LATEST
Fantastic - that worked. It is so simple - yet - so difficult to arrive at after a long day.

Thanks dempsted & jdeline

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation