CFIF question
On a page of the ad, I am trying to display graphics thumbnails and picture of thumb if they are offered in an article. So I need a CFIF statement similar to this: If there is one inch, show it, otherwise display chart.
Here's what I got so far:
< Len (Trim (ImageThumb)) cfif >
< div style = "float: left;" > "
< a href = "" #itemLink # ' #sTarget # class = "N #cfs # cst #" > "
< cfscript >
structure of arguments deinfe
strArgs = StructNew();
Application.DynamicTagGenerator
strArgs.sRelativePath = ImageThumb;
strArgs.sFileName = "";
strArgs.sAlternateImagePath = '#request. ImagePath#AcuCustom/#request.appTitle#/Icon/Thumbnail/ «;»
strArgs.bEnforceDesignStyle = "#CurrentEnforceImageSizeYN #";
strArgs.sWidth = "#currentThumbWidth #";
strArgs.sHeight = "#currentThumbHeight #";
strArgs.sAltText = ' #HTMLEditFormat (Title) # ";
strArgs.bGenerateTag = 1;
sImageThumb = Application.DynamicTagGenerator.GetImageTag (ntCollection = strArgs argume);
< / cfscript >
#sImageThumb #.
< /a >
< / div >
< cfelse >
<!--> container for the chart
< div id = "" chartStandardItemContainer #currentRow - 1 # "class ="chartStandardItemContainer"style =" width: 170px; "" height: 100px; margin-right: 15px; margin-bottom: 10px "" > < / div >
< table >
< / cfif >
It shows the graph for these article there, but when it comes to the thumb, it does not appear but the custom of declaration for the article below that.
Any suggestion?
Concerning
Its now fixed.
Here's the code to work:
##chartStandardItemContainer#currentRow-1# {display:none}
Tags: ColdFusion
Similar Questions
Maybe you are looking for
-
I was gifted with a very old iPad (I think that generation 1) and its max OS is 5.1.1. I asked for the iPad to play a game that is not sync with the cloud that I had saved on the tablet. The app now needs an update, but even if I went to App Store ID
-
Anyone know how I can put a confirmation of reading on my outlook for mac 2011?
Anyone know how I can put a confirmation of reading on my outlook for mac 2011?
-
I'm about to buy a new wifi adapter to take advantage of the benefits of my router dual-band. I have bin looking online and I could not find known retailers in my area, which offered a card dual band N 7260 of intel, but many who offer the AC adapter
-
Windows XP SP3 with IE8 installed/uninstalled several times
original title: Windows XP SP3 with IE8 installed. During the last week, I had 3 systems of Windows XP with SP3 & IE8 installed for service & and/or repairs. Update of Microsoft in the last week has been remove IE8 only to install IE8 again. Anyone c
-
I tried to configure Media Center for Internet TV and Netflix. I have Setup several times and attempted to manually download the updates. So far, neither option appeared on the menu screen and I repeatedly received an error message when you try to do