Ask a Question related to Macromedia ColdFusion, Design and Development.
-
Artspan #1
Here's My Weekend Stumper
You guys are great!!
Thanks to all for answering my many posts. This one has been stumping me for
two days and I've been reluctant to post it because of its complexity. But lo,
here it is:
I have several products (name, image, description, dimensions, etc) to go on a
"detail page." Some are stand-alone SKUs with no options, while others have
several options. To the ones that have options I have added a Class_ID, which
puts all the options for Product X in the same class (say, Cass 6). I want one
product to show at a time except in the dynamic list/menu, where I want to list
the options for each item. I need to find a way to make the list/menu form a
repeat region within the repeat region or work around the anti-nesting rule and
still have the list/menu correspond to the other data surrounding it.
Here's the code: MANY THANKS!!
<cfoutput query="QSalesD" startrow="#StartRow_QSalesD#"
maxrows="#MaxRows_QSalesD#">
<tr>
<td width="125" rowspan="2" valign="top"><img src="/Images/aiologo1.gif"
width="125" height="118" align="top"></td>
<td width="258" height="35" valign="top" class="saletext">
<cfif (IsDefined("QSalesD.Name") AND QSalesD.Name neq "") AND
(IsDefined("QSalesD.Images") AND QSalesD.Images neq "")>#QSalesD.Name#</cfif>
</td>
<td width="1"> </td>
<td width="350"> </td>
<td width="63"> </td>
<td width="43"> </td>
</tr>
<tr>
<td rowspan="4" valign="top"><a href="#QSalesD.Images#"><img
src="Images/<%=(QSalesD.Fileds.Item(Images).Value)%>"
alt=<cfoutput>#QSalesD.Name#</cfoutput> width="100%" height="303" border="0"
class="pixbox" id="Salesmen" /></a> </td>
<td height="107"> </td>
<td colspan="3" rowspan="2" valign="top"><div align="left">
<p align="center" class="Saletextred">#QSalesD.Pitch#</p>
<p class="copy2">#QSalesD.Description#<br>
#QSalesD.Dimensions#<br>
</p>
<p align="left" class="copy2"><br>
<cfif (IsDefined("QSalesD.Name") AND QSalesD.Name neq
"")>#QSalesD.SKU#</cfif>
<BR>
#DollarFormat(QSalesD.Price)# per #QSalesD.Per_Unit#<BR>
<form name="form1" method="post" action="">
<p>
<SELECT NAME="select" CLASS="copy2">
<OPTION VALUE="value"><cfif IsDefined("QSalesD.OP_Desc") AND
(QSalesD.Class_ID neq "")>Options for this Item:<cfelse> No Options Listed
</cfif></OPTION>
<option value="value"><cfif IsDefined("QSalesD.OP_Desc") AND
(QSalesD.Class_ID neq "")>#QSalesD.Op_Desc#, #QSalesD.Price# per
#QSalesD.Per_Unit#</cfif></option>
</SELECT>
</p>
<p>
<input type="submit" name="Submit" value="Submit">
</p>
</form>
</div></td>
</tr>
<tr>
<td rowspan="2"></td>
<td height="165"></td>
</tr>
<tr>
<td height="18"></td>
<td></td>
<td valign="top" class="copy2"Previous ></td>
<td valign="top" class="copy2"><div align="right"Next></div></td>
</tr>
<tr>
<td height="41"></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
</table>
<DIV ALIGN="RIGHT"><SPAN CLASS="copy2"><a
href="#CurrentPage#?PageNum_QSalesD=#Max(Decrement Value(PageNum_QSalesD),1)##Que
ryString_QSalesD#">> Previous</a> <a
href="#CurrentPage#?PageNum_QSalesD=#Min(Increment Value(PageNum_QSalesD),TotalPa
ges_QSalesD)##QueryString_QSalesD#">Next</a> </SPAN></DIV>
</cfoutput>
Artspan Guest
-
Form with nested iframe stumper
:confused; I have a form with a nested iframe. At the top of the form (outside the iframe) there is a drop-down box that is used to filter a large... -
To all Freehand Employees(a stumper)
I have asked this question on 2-3 different occassions in the past with NO response so I will try it again. I have a problem when collecting for... -
Night photography this weekend ?
Hi all, A few photographer groups from countries nearing the equator will be snapping the sky objects this weekend. They say it will be a feast.... -
A stumper for the wizards
Working in ASP VB. Tell me if I can do what my boss wants. We?re establishing a cross-check to ensure that all employees who were scheduled to sign... -
[PHP] Stumper: Get Variable Name
>I want to be able to e-mail myself the name of the variable that bombed You can use PHP's predefined constants in an assertion, and...



Reply With Quote

