Advertisement

09.11.2008 at 01:30PM PDT, ID: 23724550
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

8.4

more CFIF help please

Asked by bede123 in Cold Fusion Markup Language, Hypertext Markup Language (HTML), ColdFusion Application Server

Tags:

hi all, i had some help yesterday with a CFIF statement that placed a standard image in my cart if an image was available for a particular product. so instead of seeing a horrible mess where an image should be the user see a 'sorry no image avialable' image.

i'm trying to do the same thing except this time on a different page.

my shoppng cart 'product' page uses this to display the image and then opens a new window if the image is clicked on.

the code that fixed this last time for me was:
<a href="../product/#product.fileName#" >
<cfif fileexists ("D:\inetpub\wwwroot\mydomain\wwwroot\#product.mediaPath##product.thumbnail#")>
<img src="#product.mediaPath##product.thumbnail#" alt="#HTMLEditFormat(product.metaTitle)#"  />
<cfelse>
<img src="../../media/product/defaultimage.jpg" alt="#HTMLEditFormat(product.metaTitle)#"  />
</cfif>
</a>

if i use the above code on this new page it works until i click on the image and the new pop up window opens then it displays an error:

Invalid data '' for CFSQLTYPE CF_SQL_INTEGER.  
 
 
The error occurred in D:\inetpub\wwwroot\mydomain\wwwroot\mediaviewer.cfm: line 37
 
35 :             SELECT fileName, type, thumbnail, title, buildDate, editDate, status, '/media/product/' + dbo.GetDirectory(productID, '/') + '/' AS mediaPath
36 :             FROM #request.mediaTable#
37 :             WHERE mediaID = <cfqueryparam value="#url.mediaID#" cfsqltype="CF_SQL_INTEGER">
38 :       </cfquery>
39 :       <table width="100%" cellpadding="20">
 



thank you in advance.

zac

Start Free Trial
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
<!--- Display Page Image --->
 
<cfoutput>
<cfif (getMedia.fileName Is 0) OR (getMedia.fileName Is "")>
No Image Avaialble
<cfelse>
<cfif getDetailMedia.fileName Neq 0>
<a href="../mediaviewer.cfm?mediaID=#getDetailMedia.mediaID#&productID=#variables.productID#" rel="popup standard 600 600 noicon">
<img src="#getProduct.mediaPath##getMedia.fileName#" alt="#urlencodedformat(getProduct.title)#" /></a>
<cfelse>
<img src="#getProduct.mediaPath##getMedia.fileName#" alt="#urlencodedformat(getProduct.title)#" />
</cfif>
</cfif>
                
</cfoutput>
</span>
</div>
<cfoutput>
<cfif getDetailMedia.fileName Neq 0>
<p>
<a href="../mediaviewer.cfm?mediaID=#getDetailMedia.mediaID#" rel="popup console 600 600 noicon" class="detailed-view">Detailed View</a>
</p>
</cfif>
</cfoutput>
[+][-]09.11.2008 at 01:34PM PDT, ID: 22454441

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09.11.2008 at 01:36PM PDT, ID: 22454471

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09.11.2008 at 02:37PM PDT, ID: 22455250

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Cold Fusion Markup Language, Hypertext Markup Language (HTML), ColdFusion Application Server
Tags: Coldfusion
Sign Up Now!
Solution Provided By: SidFishes
Participating Experts: 2
Solution Grade: B
 
 
[+][-]09.12.2008 at 02:05AM PDT, ID: 22458081

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628