make images to NOT appear when the recordset field is contained

On one of the pages of my site, I've learned in recent news, but I want only the last report shot if the image in tbNews field contains text. If there is no picture so I want to just 3 images (these may be hard-coded) to display.


DynamicImage is drawn from the field of the image of tbNews. Image1 and image2, image3 are the images I want displayed if the image in tbNews field is empty. If the image field contains text then I don't want Image1 and image2, image3 to display.

CODE *.
"" < div id = 'Vidéo' > < img src = "" uploaded_images/files/news / < cfoutput > #rsLatestNews.image # < / cfoutput > "alt ="Latest news"name ="DynamicImage"id ="DynamicImage"> < /a > < img src =" images/dvdNoFlash.jpg "alt ="other pictures"name ="image1"width ="87"height ="92"="image1"id / > < img src =" images/dvdNoFlash.jpg"alt ="other pictures"name ="image2"width ="87"height = id ="92""image2"/ > < img src =" images/dvdNoFlash.jpg "alt ="other pictures"name ="3"width ="87"height = ID "92" = "3" / > < / div >

RECORDSET:
< cfquery name = "rsLatestNews" datasource = "DSNGrid" >
SELECT *.
OF tbNews
ORDER BY newsDate DESC

the structure of tbNews
newsID
newsDate
newsSubject
newsStory
image

IM Hope how to find,

Does anyone know how?

Hello

Don't worry about this, I used another piece of code and it works correctly. But thanks for your help.

I used ... .

Thank you

Tags: ColdFusion

Similar Questions

  • Why my selected image will not appear on the chassis of the big money develop?

    Why my selected image will not appear on the chassis of the big money develop? It appears on the left side, but I see only a blue box with an X in the middle of the big Frame in the Center?

    Go to your Lightroom preferences, performance tab, uncheck the box use the graphics processor.

  • images do not appear in the browser's html

    Hello

    I created and uploaded a test using DW CS3 page. The html part of the site is displayed in the browser, but none of the images (.gif, .jpg) don't. I checked and all related images appear on the remote server, the site is synchronized. I tested in browsers: Safari, Firefox, and Netscape.

    No idea as to why the images do not appear in the browser?

    Thanks for your help!

    It worked. Thank you very much!

  • HP 1000 1408AU: painted does not appear when the value.

    Hello

    My origins do not appear when I put them.

    Product name: HP 1000 1408AU

    I have a picture on my desk I would like to be and as my image background and when I right click and select "Set as background image" it does not appear, the background just stays empty. However, when I type the symbol windows on the keyboard (which takes us to the tiles) tile Office has my background image I selected. But when I click on the tile of office he does not come to the top.

    This problem occurred for at least 3 months.

    Also when I go into the control panel and then under the label "Appearance and personalization", there is "change destop background." When I click on this button and select my image, then click on save changes, it does not appear.

    Also under the same label "Appearance and personalization", when I click on the button "Edit theme", he says the image I selected is set on my screen, but it is not. The background on my desk is always empty. (Black Madonna).

    Could someone help me with this problem please?

    Thank you.

    P.s when explaining how to fix it please give simple directions front right for example click this and then he...

    Thanks again.

    Here's what looks like my background (even when an image is defined)

    Hi Russell

    Welcome to the Forums of HP Support!

    See if this tutorial helps you:
    http://www.eightforums.com/tutorials/29777-background-show-image-solid-color-Windows-8-8-1-a.html

    Concerning

    Visruth

  • image does not appear in the HTML email

    Hi all kind people.

    I have a client who wishes to an HTML email designed for her. I did a test,

    and the CSS and HTML works fine, but when I try and export it to
    Safari (safari > file > send the contents of this page) it does not appear at the other end.

    Is there a way to insert the image in the HTML code? or y at - it another way to do this?
    Maybe Outlook?

    I'm on a Mac and using mail as e-mail client.

    Michael Farnbach wrote:

    Hi all kind people.

    Is there a way to insert the image in the HTML code? or y at - it another way to do this?
    Maybe Outlook?

    Maybe, but not the incorporation in the email.  All peoples kind here do is to explicitly link the images directly from the server.  for example, if I want to connect an Adobe image on my Web page or email, then I would use an explicti path such as:

    https://wwwimages2.Adobe.com/content/dam/Adobe/images/shared/product-totems/80x80/Totem-AX I-pro - 80 x 80 .png .adimg .mw. 80.png>

    In this way, I can move the page or even e-mail, but the image will still be there.  However, you must download the image on the server before creating the link otherwise it would be a futile exercise.  In addition, some people have disabled images in messages, but this isn't your problem.

    Now this is how I do but a few muppets will tell you to do something funny.  What works with you.

  • Why my favicon will not appear when the code and the favicon.ico file are correct? I use Dreamweaver CC.

    I tried several manufacturers of .ico file and uses the code < link rel = "shortcut icon" href = "' / favicon.ico" / > in the < head > section and the favicon.ico is sitting above the index file, but it does not appear on the tab in Firefox or IE. " I also tried many drawings, I thought that this could be the problem - here are a few FLiAP-rev2.jpg and FLiAP-Rev3.jpg . What I am doing wrong? I have tried everything and google everything. I also use the PC, but I hope that this does not prevent Mac users for helping me.

    Thanks Jon. As I said to Nancy, the Favicon has finally shown this morning. But also thank you for another time saving Council which has saved me a lot of time and effort and is not mentioned anywhere. You're right,'there is really no reason to add the code in theIf the favicon.ico is located in the root of your site. Just he place here will work in all browsers.«I put only the code on my page index because I wasn't sure he would ever show upward, and, when he did finally this morning, he did on all pages and they had no code.»

    It is regrettable that on all Web sites (and I read what was like all the) dealing with the Favicons, nobody mentions these points. It's simple

    1. create the 16px by 16px favicon.ico
    2. Place it in the root of the site
    3. Clear your cache and bookmark the page
    4. Waiting - it prove, possibly the next day.

    Margaret

  • Pasted image does not appear when imported to HAVE it

    Mac OS 10.4.11 - Acrobat CS4. I did an image contact sheet in Bridge that has been saved in PDF format. In Acrobat, I stuck another image (report of different sizes) and saved again. However, when I put the image in Illustrator the pasted image do not show, only the images of initial contact. It shows either at the level of the preview, but when the PDF file is opened, it is there. I tried to "flatten" but cannot find an option that works. See the attached file.

    I leave that to the OP respond :), but I guess that Illustrator could be used to add captions and others.

  • Why are the table of contents will not appear when the project opened on the intranet?

    One of our projects RoboHelp 9 not open when the table of contents is open on the left.  It doesn't have a link that says 'Show', but the favorite opening would have the table of contents already developed.  All other projects pave the way.

    I have "Show Navigation pane link in topics" box on the settings WebHelp Navigation page. I adapted all webhelp settings to another project that opens correctly.

    What else can we do?

    Deanna

    Hmmm, the dialog box, the page that should open the WebHelp is actually named 'startpage.htm '. It would seem that it is the HTML page, you must link to the.

  • The SVG images do not appear in the web server, but it worked when using catalyst for the company.

    After that I used some pictures 'SVG' at the end of my work of muse, I exported "HTML files" and transferred all my web server.  SVG images are not displayed, appear other JPG, PNG.  But I downloaded the files in "adobe business catalyst", SVG and other images are displayed correctly.    Anyone know what I can solve the problem?

    Thank you very much!

    You must get your provider to serve SVG files with the mime type image/svg + xml to web hosting. Here is a link that describes the problem and the settings of your hosting provider must address. http://www.w3.org/services/SVG-Server/

  • Pop - up screen to record images does not appear when you connect the camera

    Original title: when I plug in my camera to download photos I don't have a pop up screen to ask me some questions were to save you more pictures. I want the pop up screen to come back.
    Guest USB? Download the pictures?

    Hello

    1. Are you referring to the AutoPlay window that appears when you connect a device to the computer?

    What is the number and the model of the camera?

    In case you are referring to the Auto play option then try the troubleshooting steps provided in the link below to fix the problem.

    Troubleshoot AutoPlay

    http://Windows.Microsoft.com/en-us/Windows-Vista/Troubleshoot-AutoPlay-problems

  • 'Drop image' image does not appear at the FCC.

    I'm lost. I just open a copy of the model 'push' of the PCF in movement. Add a moving image where it says image drop. He plays on the move, and if I export a blow the image is there. But in FCP the image isn't there. Only black. What I am doing wrong. Pulling my hair out. Referring to the fact that might help. The tile in FCP show in the picture at the beginning, but if I skim the vignette is not and if I drag the on the timeline image is not there. Help, please.

    Thank you.

    Tom

    Normally you do not "charge" a with the media on the move drop zone, but it's a viable option. The trick is, when you save the project as a model, you must select the option "Include unused media" this movement will save the fall zone media in the Media folder in the model to make it available for FCPX.

    We encourage you not to do what the drop areas are available and are usually 'loaded' in FCPX unless you have a good reason to do otherwise (for example, to force a report l / h size image box or image specific 'default' or the cutting for the effect).

  • New cover image does not appear in the preview of the iPad

    I replaced the image on the cover. New image appears when I saw on my MacBookPro, but not when I saw on the iPad Pro: the old image stills appears. How can I fix? Maybe I deleted the original placeholder. This would cause the problem? If so, how can I solve this problem?

    Thank you!

    Joseph

    Try to select Reset for iBooks Store on the file Menu in iBooks author before exporting it to iBooks for iPad you.

    OR remove the original of your iPad file before adding the new version.

  • report image does not appear when a certain background cordinate is exceeded

    Hi all

    I create reports of DIAdem using script functions. Since the update to tiara 2015 (I belive) there is a mistake that didn't happen before:

    When I add a new Image to the State and lower coordinate is that below a certain value (~50...60) the image appears correctly. However if the lower coordinate exceeds this value the image will not be displayed (see the attached example script)

    Thanks in advance

    Christoph

    Hi Christoph,

    Properties of position change if changing the related properties.

    For example, if you change the height of the image to 100%, up and down changes to 0% each.

    If you change the background property to 60% as in the example script you, height + Top must be 40%.

    I hope that this screenshot with your source code to understand the problem:

    If the height or width property is zero, no picture!

    I suggest not to define two properties for a dimension (for example Top and height or up and down).

    If you set only one of the three properties, position of the image is not fully defined by the user, but by some default values of DIAdem.

    Concerning

    Christian

  • Bitmap image does not appear when other fields added

    Hello

    I have a VerticalFieldManager with a bitmap and a few fields (code below).
    I add to an another VFM then call setBitmapField when the tile is
    downloaded in another thread.

    The code below when the bitmap is set, the other fields, move to the
    right to leave a space for the bitmap image, but the image bitmap is not visible.

    If I remove:

    This.Add (this.authorField);

    and code layout corresponding to sublayout, the bitmap fine watch.

    What I am doing wrong?

    ---

    class Item extends VerticalFieldManager {
    
        public BitmapField thumbField;
        public Bitmap image = null;
        private LabelField titleField;
        public LabelField authorField;
    
        public Item(ItemData item) {
    
            this.thumbField = new BitmapField(); 
    
            this.titleField = new LabelField(item.title, FOCUSABLE);
            Font fnt = this.getFont().derive(Font.PLAIN, titleField.getFont().getHeight() - 1);
            this.titleField.setFont(fnt);
    
            this.authorField = new LabelField(item.author);
            Font fnt2 = this.getFont().derive(Font.PLAIN, authorField.getFont().getHeight() - 3);
            this.authorField.setFont(fnt2);
    
            this.add(this.thumbField);
            this.add(this.titleField);
            this.add(this.authorField);
        }
    
        public void setBitmapField(Bitmap _image) {
            this.image = _image;
            this.thumbField.setBitmap(_image);
            this.invalidate();
        }
    
        protected void sublayout(int width, int height) {
    
             if (getFieldCount() > 0) {
    
                 BitmapField _thumbField = (BitmapField)getField(0);
                 layoutChild(_thumbField, _thumbField.getBitmapWidth(), _thumbField.getBitmapHeight());
                 setPositionChild(_thumbField, 0, 0);
    
                 int thumbWidth = _thumbField.getWidth();
    
                 Field _titleField = getField(1);
                 layoutChild(_titleField, width - thumbWidth, _titleField.getHeight());
                 setPositionChild(_titleField, thumbWidth + 5, 0); 
    
                 Field _authorField = getField(2);
                 layoutChild(_authorField, width - thumbWidth, _authorField.getHeight());
                 setPositionChild(_authorField, thumbWidth + 5, _titleField.getHeight()); 
    
                 setExtent(width, _titleField.getHeight() + _authorField.getHeight() + 2);
             }
         }
    }
    

    I have it! Had to extend Manager rather than VerticalFieldManager. Assumes that the optimization of the resources are so limited in-house as how fields can be arranged. Makes sense.

  • Image does not appear in the hierarchy

    Hello

    I user JDeveloper 11.1.1.5, I discovered dvt:hierarchyViewer with adf:image, user hierarchy the problem is when I use the source of the resource image file image sound appear, but when I use the image of the URL as http://www.xx.com/i.png is not appear.

    Suggestion to get image URL?

    Concerning

    The CBC of af: image would be the relative to the resource for the image url.

    Refer

    Using ADF hierarchy Viewer components - 11 g Release 1 (11.1.1.6.0)

Maybe you are looking for

  • Qosmio F750 - BT fails after update 8.1 Win

    I just updated my Qosmio F750 from Windows 7 to Windows 8.1 successfully, and the windows 10 offer appeared. But one thing is not fair. When I go to Device Manager it shows Bluetooth RFCOMM with the! mark in the yellow triangle. I can get 2 messages:

  • How to prepare the server Mac Mini (late 2011) for sale?

    How to prepare you to a Mac Mini Server Lion (end 2011) that is running the latest version of El Capitan (10.11.4) and is not used as a server from scratch? Response or want user to be able to start over with her as a new State.

  • iMac late 2014 fusion player card damaged partition

    Some time ago, I was about to create a new partition on my new iMac 27 ", end of 2014, retina, with a fusion drive consisting of a 120 GB SSD and a 1 TB HARD drive with this * new disk utility. Frozen in the middle of the utility process of disk and

  • Choose a color space in LR CC

    There was once an option to choose/set color in Lightroom with the choice of ProRGB, Adobe RGB, sRGB space as there are PS/Bridge. As I have used Adobe RGB as baseline - camera photo/computer and lab - it's a serious problem, given the develop module

  • Pan while holding the SPACEBAR

    Sorry if it's sitting before but I'm pulling my hair out here.  I recently downloaded and installed CC2015 PS on a new laptop Windows 10.  Everything works well except when I hold down the space bar, my cursor turns into a hand symbol, but it will no