Ask a Question related to Coldfusion Database Access, Design and Development.
-
Marblehead Johnson #1
Stumped on dynamic menu
Hi,
I have setup a basic query to list colours of a clothing item whilst taking on
the challenge of building an online shop. My simple query returns the colours,
however I am struggling to get these results into my form's menu for the user
to select their choice. I have setup the query 'qryItemColours' with the column
'Colour'. The starting code I have is...
<select name="Colours" id="Colours">
<option value="#qryItemColours.Colour#">#qryItemColours.Co lour#</option>
</select>
However this only returns the first value. What code do I need to include to
completly populate this menu with all query results?
Have searched through forum but with no similar problem. I'm sure I am missing
something very simple but stumped at this end.
Appreciate any help.
Thanking you in advance.:confused;
Marblehead Johnson Guest
-
Help with Dynamic Menu
Hey everyone, I'm developing a piece right now and have come to a stand still. The menu part of the project will contain a number of "Business... -
Stumped on Dynamic List/Menu
I keep posting hoping that someone will have an answer to this stumper: I want to show a product (wooden hanger) with one image, one name, and one... -
dynamic menu system going to dynamic page
please can someone help me - im at the end of my tether! ive got an access db. Its got a list of words that is to be a menu system stored in it.... -
Dynamic Menu...is it possible?
I'm new with Flash and I need to know if it is possible with Flash to get a menu created dynamically where the information is coming from a database.... -
Dynamic Menu Help
Hello, I have a written a simple dynamic menu seen here (http://www.digitaris.com). It uses an xml file to create the categories and... -
RelentlessMike #2
Re: Stumped on dynamic menu
I believe that you are going to need to surround your <option> tags with one set of <CFLOOP> </CFLOOP> tags, referencing the query from the opening <CFLOOP> tag.
Hope that helps,
Mike
RelentlessMike Guest
-
Marblehead Johnson #3
Re: Stumped on dynamic menu
Works perfectly! Cheers Mike!
Marblehead Johnson Guest
-
weswhite7 #4
Re: Stumped on dynamic menu
Hey - I had a similar problem but came back with not getting the result that I
was wanting. I had the smae problem as he did, but the cfloop doesn't give me
the fix.
Attribute validation error for tag CFLOOP.
The tag has an invalid attribute combination: . Possible combinations are:
Required attributes: 'from,index,to'. Optional attributes: 'step'.
Required attributes: 'condition'. Optional attributes: None.
Required attributes: 'query'. Optional attributes: 'endrow,startrow'.
Required attributes: 'index,list'. Optional attributes: 'delimiters'.
Required attributes: 'collection,item'. Optional attributes: None.
The error occurred in line 12
10 : <cfoutput query="grabmensscheduleVARJV">
11 : <select name="opponents" id="">
12 : <cfloop><option value="#opponent#">#opponent#</option></cfloop>
13 : </select>
14 : </cfoutput>
weswhite7 Guest
-
weswhite7 #5
Re: Stumped on dynamic menu
Actually, I figured out the answer to what I was doing wrong and what would
make your's much more simple.
Do it like so and it works:
<select all this stuff>
<cfoutputquery="whateveritis">
<option value="query">#query"</option
</cfoutput>
</select>
weswhite7 Guest



Reply With Quote

