[ACFUG Discuss] Alternate image shown logic help?

2006-07-27 Thread Robert Reil
Is there a way to have an alternate image called if an image called does not exist? For example: We call out the image path for the image as if it would one day be there. When we shoot an image as it comes into inventory we place the image in the correct directory, and name it the part

RE: [ACFUG Discuss] Alternate image shown logic help?

2006-07-27 Thread chamer
You can use FileExists(absolute_path) in an if statement. Eg. cfif FileExists(C:\www\images\picture.gif) img src=C:\www\images\picture.gif cfelse img src=C:\www\images\no_picture.gif /cfif Chris -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On

RE: [ACFUG Discuss] Alternate image shown logic help?

2006-07-27 Thread Robert Reil
Good stuff all of you. However if I want to put 3 steps in there the middle step would be cfelseif correct? I am also a little uneasy about what seems like multiple languages. It seems that the orgininal code is in Java (?). How will I imbed the CF into that language? Ex:

Re: [ACFUG Discuss] Alternate image shown logic help?

2006-07-27 Thread Teddy Payne
This is true. Less modification does mean less debugging typically. Refactoring a code segment would be for when the current logic does not achieve what you need.On 7/27/06, Steven Ross [EMAIL PROTECTED] wrote: I am saying I don't see a reason to change your logic here... your just throwing in

RE: [ACFUG Discuss] Alternate image shown logic help?

2006-07-27 Thread Robert Reil
Hmm thats a realistic perspective worth considering... But since this is an output template it shouldnt matter except I need to do change management to cover AC upgrades. Robert P. Reil Managing Director, Motorcyclecarbs.com, Inc. 4292 Country Garden Walk NW Kennesaw, Ga. 30152

Re: [ACFUG Discuss] Alternate image shown logic help?

2006-07-27 Thread Douglas Knudsen
Java? Clearly there is no Java there. A dead giveaway is this line if( Len(objProduct.getImage2()) GT 0 ) No respectable language like Java uses GT! haha! j/kThis is cfscript. http://livedocs.macromedia.com/coldfusion/6/Developing_ColdFusion_MX_Applications_with_CFML/CFScript.htmDKOn 7/27/06,

Re: [ACFUG Discuss] Alternate image shown logic help?

2006-07-27 Thread Teddy Payne
lol Doug..that was good geek humor :)We did notice the ; Robert. This is a dead giveaway of cfscript. Writeoutput can be used in many places, but it is very commonly used inside of cfscript tags. Kind of like:cfscript if FileExists(C:\www\images\picture.gif) { writeoutput(img src=''); } else if

RE: [ACFUG Discuss] Alternate image shown logic help?

2006-07-27 Thread Robert Reil
OK got you. Now I have clarity. Time to crunch code! Robert P. Reil Managing Director, Motorcyclecarbs.com, Inc. 4292 Country Garden Walk NW Kennesaw, Ga. 30152 Office 770-974-8851 Fax 770-974-8852 www.motorcyclecarbs.com From: Teddy Payne [mailto:[EMAIL

RE: [ACFUG Discuss] Alternate image shown logic help?

2006-07-27 Thread Dusty Hale
Also if it is CF script a dead give away would be if the file with the code in it had a file name with a .cfm extension Dusty From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Robert Reil Sent: Thursday, July 27, 2006 11:07 AM To: discussion@acfug.org

RE: [ACFUG Discuss] Alternate image shown logic help?

2006-07-27 Thread Robert Reil
Told you I was new! Ok so the CF and CFscript wrapper calls Java objects sometimes is what you are saying. I can live with that. Robert P. Reil Managing Director, Motorcyclecarbs.com, Inc. 4292 Country Garden Walk NW Kennesaw, Ga. 30152 Office 770-974-8851 Fax 770-974-8852

Re: [ACFUG Discuss] Alternate image shown logic help?

2006-07-27 Thread Teddy Payne
Ok, I will try not to confuse you here.ColdFusion is an interpreted language. ColdFusion has tags and functions that give instructions to a Java engine. ColdFusion is a Java application.You don't need to know Java to be proficient at ColdFusion. TeddyOn 7/27/06, Robert Reil [EMAIL PROTECTED]