Getting images to NOT appear when field in recordset is has content

Hi
On one of my site pages, i have the latest news being pulled
in, but i only want the latest news story pulled in if the image
field in tbNews contains text. if there is no image then i just
want 3 images (these can be hard coded) to be displayed.
the structure for tbNews
newsID
newsDate
newsSubject
newsStory
image
does anyone know how to do this?
thanks

Hi
thanks for your reply, i would like a bit of help with the
code please, below i have pasted the code i am using:
DynamicImage is image being pulled in from the image field in
tbNews. Image1, image2 and image3 are the images i wanted displayed
if the image field in tbNews is empty. If the image field contains
text then i do not want Image1, image2 and image3 to be displayed.
****CODE****
<div id="Video"> <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 images"
name="image1" width="87" height="92" id="image1" /><img
src="images/dvdNoFlash.jpg" alt="other images" name="image2"
width="87" height="92" id="image2" /><img
src="images/dvdNoFlash.jpg" alt="other images" name="image3"
width="87" height="92" id="image3" /> </div>
RECORDSET:
<cfquery name="rsLatestNews" datasource="DSNGrid">
SELECT *
FROM tbNews
ORDER BY newsDate DESC
Hope im making sense,

Similar Messages

  • Image does not appear when publishing...does it matter where you import audio?

    I have an image on my slide and when I preview the slide it appears correctly, when I hit F10 to preview next 5 sldies or publish file it does not appear. I have imported audio to the slide not to an object. I am wondering if this matters? Any help on this would be greatly appreciated.
    Thank you...

    Rod -
    Cant really explain this one, but the visible check box was checked... I then unchecked it and checked it again, now it seems to be working.....
    Weird, but at least it is working.

  • Loader images do not appear when .swf is published.

    I have a series of images that I want to be able to swap out
    on a weekly basis in my flash piece. I used the image loader to
    call them from my webserver, and when I am in flash, editing my
    .fla, they appear perfectly. But once I publish the flash piece, a
    white box appears in their place, and the images never load.
    It doesn't matter whether I publish the flash to the web and
    place it in the same folder as the images, or just publish it and
    view it from my harddrive... either way, the images do not show in
    the .swf... they only show while editing in flash. I am calling
    dynamic text from the same server, and it works perfectly. Any help
    is appreciated.

    Hmm... hard to tell what is going on Josh. Can you provide a
    url to the
    swf?
    Dan Mode
    *THE online Radio*
    http://www.tornadostream.com
    *Must Read*
    http://www.smithmediafusion.com/blog
    *Flash Helps*
    http://www.smithmediafusion.com/blog/?cat=11
    "Josh Rose" <[email protected]> wrote in
    message
    news:e9oqua$ad2$[email protected]..
    >I have a series of images that I want to be able to swap
    out on a weekly
    >basis
    > in my flash piece. I used the image loader to call them
    from my webserver,
    > and
    > when I am in flash, editing my .fla, they appear
    perfectly. But once I
    > publish
    > the flash piece, a white box appears in their place, and
    the images never
    > load.
    >
    > It doesn't matter whether I publish the flash to the web
    and place it in
    > the
    > same folder as the images, or just publish it and view
    it from my
    > harddrive...
    > either way, the images do not show in the .swf... they
    only show while
    > editing
    > in flash. I am calling dynamic text from the same
    server, and it works
    > perfectly. Any help is appreciated.
    >

  • Why has my landscape orientation feature quit working. Images do not rotate when device is rotated., why has my landscape orientation feature quit working. Display does not rotate when device is rotated.

    why has my landscape orientation feature quit working. Display does not rotate when device is rotated.

    Is orientation lock on?
    iPhone User Guide (For iOS 6 Software)

  • For some artists in my Music app on my I-phone, the songs do not appear when I search by the artist.  However, if I search the album name, all the songs show.  How do I get the songs to show under songs?

    For some artists in my Music app on my I-phone, the songs do not appear when I search by the artist.  However, if I search the album name, all the songs show.  How do I get the songs to show under songs?

    Hi Spam_Valley,
    I understand that you are having issues with your music displaying correctly. This may be an issues with the metadata stored within that song, and iTunes interpretation of that info.
    We may need to repair this. See the following resources for information:
    iTunes 10 for Windows: If song titles don’t appear correctly
    http://support.apple.com/kb/PH1468
    Fixing Incorrect Song or Album Listings in iTunes
    http://support.apple.com/kb/TA24677
    Thanks,
    Matt M.

  • Images on Facebook do not appear when using different web browsers

    Images on Facebook do not appear when using Safari on my Macbook Pro (I've tried Google Chrome too with the same result).  This makes me think it's a setting within OS Mavericks that I'm missing.  I have not seen this issue on any other computers.  This only occurs on my, and others' profile pictures on my profile page and on the news feed, not photos that are posted in albums or on walls.  and yes, i have images enabled in Safari.
    In safari the images don't appear, and in their place is a small blue "?" square >>.
    In Chrome it appears as a broken image link >>
    Has anyone encountered this?  Is there a fix?  It is very annoying.

    Please read this whole message before doing anything.
    This procedure is a diagnostic test. It’s unlikely to solve your problem. Don’t be disappointed when you find that nothing has changed after you complete it.
    The purpose of the test is to determine whether the problem is caused by third-party software that loads automatically at startup or login, by a peripheral device, or by corruption of certain system caches. 
    Disconnect all wired peripherals except those needed for the test, and remove all aftermarket expansion cards. Boot in safe mode and log in to the account with the problem. Note: If FileVault is enabled on some models, or if a firmware password is set, or if the boot volume is a software RAID, you can’t do this. Ask for further instructions.
    Safe mode is much slower to boot and run than normal, and some things won’t work at all, including sound output and  Wi-Fi on certain models. The next normal boot may also be somewhat slow.
    The login screen appears even if you usually log in automatically. You must know your login password in order to log in. If you’ve forgotten the password, you will need to reset it before you begin. Test while in safe mode. Same problem? After testing, reboot as usual (i.e., not in safe mode) and verify that you still have the problem. Post the results of the test.

  • HT201401 While calling a contact his image does not appear it appears only when he calls me

    While calling a contact his image does not appear on the screen but when the same contact calls me his image appear on the screen

    Hello,
    I never drag the group list to mail.
    I just type it's name and Mail brings it automatically.
    I really don't see the point of starting do what you suggested as it complicate the work flow (using 2 applications to achieve a missing feature...)
    I think the point is to simplify things and not complication them.
    I need Mail to be flexible, so I can add as many groups or one by one contacts without having the need to use another application and drag from there.
    How come no one has thought about that?
    very strange and frustrating to know it's not existed in mail.
    but thanks anyhow
    by the way,
    when such a feature missing, does it goes to apple features requests?
    shlomit

  • Images not appear when using SUN IDE. help !

    I have the Sun IDE, and I have a problem. The problem is : when I compile using this IDE, Images do not appear.
    But when I compile using another IDE such as JPadPro, images appear well.
    Thank you !!

    [url http://forum.java.sun.com/thread.jsp?forum=10&thread=486965&tstart=0&trange=15]Please post enough code that someone can figure out what it is you are trying to do and what you have done.
    &#91;code&#93;public class SomeThing { // YOUR CODE HERE
        private Some some = new Some();
        public Thing thing = new Thing();
        public SomeThing() {
            doSomething();  // do something!!!
        public void doSomethng() {
            some.thing();
            thing.doThatFunky();
    &#91;/code&#93;
    Use code blocks to make your code more readable. (See [url http://forum.java.sun.com/features.jsp#Formatting]&#91;Formatting Help&#93; on the page you post on.)

  • HT201406 1st. Gen iPad question:  the touch keyboard does not appear when attempting to input data into data fields - this happens while using all apps, ex. Notes, Google, Pages, etc..

    1st. Gen iPad question:  the touch keyboard does not appear when attempting to input data into data fields - this happens while using all apps, ex. Notes, Google, Pages, etc.. The cursor prompt is present.  Tapping screen just brings up the option to: "Select   Select All   Paste."   I have rebbooted with no change. 
    Message was edited by: Jimfromutah
    The problem was my connected bluetooth keyboard.

    1st. Gen iPad question:  the touch keyboard does not appear when attempting to input data into data fields - this happens while using all apps, ex. Notes, Google, Pages, etc.. The cursor prompt is present.  Tapping screen just brings up the option to: "Select   Select All   Paste."   I have rebbooted with no change. 
    Message was edited by: Jimfromutah
    The problem was my connected bluetooth keyboard.

  • Image does not appear in applet.

    I am reading the book, Teach Yourself Java in 21 Days.
    There is an example in Ch.11 that shows how to load an image into the applet.
    I have tried to use the code provided as is along with an image as defined in the code. I have also uploaded the html, class and image to a folder on the web. Unfortunately, the image does not appear in the applet. The image does have an image that I created using ms paint.
    Here is the code I am currently using from the book:
    import java.awt.Graphics;
    import java.awt.Image;
    public class LadyBug2 extends java.applet.Applet {
         Image bugimg;
         public void init() {
             bugimg = getImage(getCodeBase(),
                 "ladybug.gif");
         public void paint(Graphics g) {
             int iwidth = bugimg.getWidth(this);
             int iheight = bugimg.getHeight(this);
             int xpos = 10;
             // 25 %
            g.drawImage(bugimg, xpos, 10,
                iwidth / 4, iheight / 4, this);
             // 50 %
             xpos += (iwidth / 4) + 10;
             g.drawImage(bugimg, xpos , 10,
                  iwidth / 2, iheight / 2, this);
             // 100%
             xpos += (iwidth / 2) + 10;
             g.drawImage(bugimg, xpos, 10, this);
             // 150% x, 25% y
             g.drawImage(bugimg, 10, iheight + 30,
                 (int)(iwidth * 1.5), iheight / 4, this);
    }I tried placing the image in an images folder and I also tried changing the code to getImage(getDocumentBase(), "ladybug.gif")
    as well as tried getImage(getCodeBase(), "ladybug.gif") in order to try and grab the image from the same directory as the class file and the html file.
    The image file's name is: ladybug.gif
    The code in the html file:
    <HTML>
    <HEAD>
    <TITLE>Lady Bug</TITLE>
    </HEAD>
    <BODY>
    <P>
    <APPLET CODE="LadyBug2.class" WIDTH=1024 HEIGHT=500>
    </APPLET>
    </BODY>
    </HTML>
    I have gotten previous applet examples from the book to work. One of them did have an error in the author's code which I fortunately was able to overcome. This time, I am afraid, the error eludes me.
    Thanks in advance.
    I do see that there is no start/stop/run in this version, but I believe this should still work because of the init. I am guessing that maybe the problem lies somewhere in there.
    Message was edited by:
    gnikollaj

    According to the javadoc:
    getImage
    public Image getImage(URL url,
    String name)Returns an Image object that can then be painted on the screen. The url argument must specify an absolute URL. The name argument is a specifier that is relative to the url argument.
    This method always returns immediately, whether or not the image exists. When this applet attempts to draw the image on the screen, the data will be loaded. The graphics primitives that draw the image will incrementally paint on the screen.
    Parameters:
    url - an absolute URL giving the base location of the image.
    name - the location of the image, relative to the url argument.
    Returns:
    the image at the specified URL.
    I am confused as to how to use the name after the url.
    Should it read something like:
    bugimg = getImage("http://g.jtrusty.com/JavaApplet/", "LadyBug.gif");
    EDIT: I still get the same error, cannot find symbol at getImage.
    Message was edited by:
    gnikollaj

  • Poster image does not appear in IE

    I am having another problem with the poster image feature.  In IE7 & 8, the poster image does not appear at all when the player is first loaded. If the page is cached and loaded, the poster image appears fine.
     I think this is a bug, but can anyone confirm seeing this or fixing it? 
    Thanks!

    According to the javadoc:
    getImage
    public Image getImage(URL url,
    String name)Returns an Image object that can then be painted on the screen. The url argument must specify an absolute URL. The name argument is a specifier that is relative to the url argument.
    This method always returns immediately, whether or not the image exists. When this applet attempts to draw the image on the screen, the data will be loaded. The graphics primitives that draw the image will incrementally paint on the screen.
    Parameters:
    url - an absolute URL giving the base location of the image.
    name - the location of the image, relative to the url argument.
    Returns:
    the image at the specified URL.
    I am confused as to how to use the name after the url.
    Should it read something like:
    bugimg = getImage("http://g.jtrusty.com/JavaApplet/", "LadyBug.gif");
    EDIT: I still get the same error, cannot find symbol at getImage.
    Message was edited by:
    gnikollaj

  • Photos do not appear when I'm trying to construct a Book in iPhoto 08

    I really hope someone can help me understand why some picture images do not appear in the photo window strip of iPhoto 08, when I go to make a Book. These same images appear in my Library - but just seem to vanish in Book/Project mode!
    All the photos from my digital camera seem to appear OK ... but I have noted the images (jpgs) in question are ones I've downloaded from the Net - legitimately from friend's UGC sites (with permission and which do not breach any copyrights).
    I cannot work out what is going on - as older images I've previously downloaded from the Net - which were imported into earlier versions of iPhoto - ALL appear! I've also tried renaming the jpgs removing all '&' type symbols and reloading them into iPhoto - but still without success.
    Any help will be much appreciated.
    Cheers,
    axiom303

    Hi TD,
    Yes they do appear in full size and I can edit them. I've just realized that it's not just photos from the Net that are not appearing - it seems to be happening for all photos I've imported into iPhoto after a certain date.
    After spending many more frustrating hours trying to work this out, I found that if I click all of the 'events' which contain the photos I'm after and then create a Book - all these photos appear in the selection window strip. However I still need to work out a proper solution as this still limits me to only those photos in the highlighted 'events' and no new pictures can be added to that particular Book.
    Heeeelp please!
    axiom303

  • Since my last firefox update, I have been unable to type an email - the text box does not appear when I press 'reply' , or press 'compose'. The email provider is '123-reg.co.uk. I have been using both firefox and the provider ['webfusion Ltd/webmail123] s

    Hello. Since my last firefox update, I have been unable to type an email - the box within which one would usually type does not appear when I press 'reply' to a received email, or press 'compose'. The email provider is '123-reg.co.uk. I have been using both firefox and the provider ['webfusion Ltd/webmail123] successfully for well over a year. The provider says it is a browser problem. I can still add an attachment to the email header, which successfully can be sent, but the recipient gets my standard email 'signature' with font messages and the attachment. Can anyone help? My email addresses are [email protected] [this is the one with the issue] and [email protected] in English
    == today

    My daughter has had her Razr for about 9 months now.  About two weeks ago she picked up her phone in the morning on her way to school when she noticed two cracks, both starting at the camera lens. One goes completely to the bottom and the other goes sharply to the side. She has never dropped it and me and my husband went over it with a fine tooth comb. We looked under a magnifying glass and could no find any reason for the glass to crack. Not one ding, scratch or bang. Our daughter really takes good care of her stuff, but we still wanted to make sure before we sent it in for repairs. Well we did and we got a reply from Motorola with a picture of the cracks saying this was customer abuse and that it is not covered under warranty. Even though they did not find any physical damage to back it up. Well I e-mailed them back and told them I did a little research and found pages of people having the same problems. Well I did not hear from them until I received a notice from Fed Ex that they were sending the phone back. NOT FIXED!!! I went to look up why and guess what there is no case open any more for the phone. It has been wiped clean. I put in the RMA # it comes back not found, I put in the ID #, the SN# and all comes back not found. Yet a day earlier all the info was there. I know there is a lot more people like me and all of you, but they just don't want to be bothered so they pay to have it fix, just to have it do it again. Unless they have found the problem and only fixing it on a customer pay only set up. I am furious and will not be recommending this phone to anyone. And to think I was considering this phone for my next up grade! NOT!!!!

  • Photos Do Not Appear When Dragged Into Ibooks Author

    I formatted my images to 72 DPI .png files and when i drag and drop them into Ibooks Author I can see them, I can manipulate them, resize,  add captions.  When I do a test the images appear in the text view portriat mode of the Ipad but when in the landscape mode, the images do not appear. There is just a blank space with a caption.   If I create a photo widget and drop the photo inside I am able to see it on the Ipad however that widget does not allow me to resize as I would like.  Does anyone have a fix for this issue or an idea?
    Thanks
    Chris A. 

    Confirm your process here:
    Optimizing performance in your iBooks Author books
    ...and try jpg for photos instead of png.
    And remember - layout in landscape...edit in portrait. Always delete a placeholder image before adding your own.

  • HT1600 I have an Apple TV 2nd Gen, iPad 2 and can't get the icon to appear when i swipe from left to right. What am I missing? I am able to get the 'Home sharing' 'user and password on my Mac.

    I have an Apple TV 2nd Gen, iPad 2 and can't get the icon to appear when i swipe from left to right. What am I missing?
    I am able to get the 'Home sharing' 'user and password on my Mac.
    Also using IPad 2 I am able to get the ITunes to accept the user name and same password as the Mac.
    However, the only way I can see the 'Home sharing; icon is in Music on the Ipad. When I tap on the Icon it asks for a password.
    When I give the same password, it is rejected.
    Help!!!!
    Jaxxdiggs

    Personally I think the iOS devices are poor at reconnecting  - Airplay establishes that a link is available but when the iPhone/iPad has been away from the house and rejoins the network i think AppleTV already thinks it's connected with a different IP address and fails to recognise it has joined the network again with new credentials.
    Something along those lines anyway.
    I find that a combination of restarting AppleTV, router and iOS device tends to fix it, but not for everyone.
    AC

Maybe you are looking for

  • Pls tell me how to upload from excel file to database.

    hello,experts, I want to upload data from excel local file to database table created by myself.when I use function CALL FUNCTION 'GUI_DOWNLOAD' the data in the internal table just become error code data that can not understand. who can help me out? t

  • How to count frequency of specific text in Column?

    Hi All, We have  an FR , designed in FR studio which when run, pulls from hfm the " Calculation Status" of all the entities in a text column.  The Status come as "OK", "SC","CN" ,"CH"etc. see below exmple: Entity                              Status C

  • Query Tweak

    Below is the current query I have that I am looking to tweak.  Below that are some results.  A customer code could have multiple cards.  In this query if the customer is new they will only have one card listed.  If they already have an existing card

  • Best digital video cameras to use with imovie 11

    I am looking for a compatible HD video camera that will work with imovie 11.  Read tons of reviews, but have not found a good match yet.  Thanks in advance for any suggestions.

  • INITIALIZATION block triggered twice/again after back from result screen

    Hi, The event block INITIALIZATION is triggered more than once as title. Please advise if it is standard runtime behaviour. It is fired 1st time before showing the selection screen, which is normal. Then enter inputs, execute the report,      -test 1