Go Back   CodingForums.com > :: Server side development > Other server side languages/ issues > ColdFusion

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 12-28-2010, 06:43 PM   PM User | #1
teedoff
Senior Coder

 
Join Date: Aug 2010
Location: High Point, NC
Posts: 3,325
Thanks: 5
Thanked 363 Times in 360 Posts
teedoff is on a distinguished road
maybe another way to do this?

Hi I have a CF application that uses a form page to enter data into the input fields, then passes those fields as SESSION variables to the action page so that the use can view hwo the page is going to look. basically is an application to build new html documents/pages.

Everything so far works fine. I have need to keep adding input fields at various stages, and so I have added a text area for the purpose of adding a list of sorts which is a list of cross references to a particular product related to the page being built.

The cross reference list variable: SESSION.crossRefList is then passed to the action page and displayed in an unordered list by means of <cfloop> like so:

Code:
<ul>
          <cfloop index="crossRefList" list="#FORM.crossRefList#" delimiters="#chr(13)##chr(10)#">
            <li><cfoutput>#crossRefList#</cfoutput></li>
          </cfloop>
        </ul>
All is fine with this except: Each page may have one list or it may have 20 lists. And each list is started with a brand name that is ideally enclosed in an <h3> tag.

I would love to be able for the data entry girl to enter this without having to actually enclose the first list item in <h3> tags, however, it ezcapes me on how this would be accomplished, since again this is completely dynamic and the number if list items is unknown. Here is an example of the lists I'm talking about, then you can see what I trying to figure out.

Code:
Alpine
SKY10

Apollo
Products Imager 100

Best Hood
K15

Callisto
3094071

Cole-Parmer
Compound Microscope
Trinocular, Catalog No. A-48924-30

Fenix
3069061

Helix
3003051

Kitchenaid

Locos
3072071

Lumos
3071071
3093071

Rumex
3001061

Solaris
3043061

Sunnex
Flexible Halogen Light

Thermadore
Hood Light HG5W36TS
I hope this all makes sense. Again, The way I have it now, the data entry girl has to type in the <h3> tags for the bolded texts above to be styled correctly. I would love to be able to have this done for her so she wouldnt have to worry about that. Thanks for any help and if you need any more info, let me know.
teedoff is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 08:23 PM.


Advertisement
Log in to turn off these ads.