Showing the images

Hi.I need to show the images wich are in folder images &
display "No Image" for those we have not the image in the folder.
I wrote this code:
<cfset PhotoLocation =
"e:\www\NeedBattery\images\manufacturer\<cfoutput>#getBrands.cat_level2_image#</cfoutput> ">
<cfif not FileExists(PhotoLocation)>
<cfoutput>no image</cfoutput>
<cfelse>
<a><img
src="#imagePath#images/manufacturer/#getBrands.cat_level2_image#"
width="60" height="40" /></a>
</cfif>
but the result is incorrect & typed "NO Image" for all
the images.
would u plz help me what is wrong with my code?
thanks

Try
<cfif
FileExists(ExpandPath("\NeedBattery\images\manufacturer\<cfoutput>#getBrands.cat_level2_i mage#</cfoutput>"))>
If you still want to use the PhotoLocation you need to amend
thus:
<cfset PhotoLocation =
"\NeedBattery\images\manufacturer\<cfoutput>#getBrands.cat_level2_image#</cfoutput>">
<cfif FileExists(ExpandPath(PhotoLocation))>

Similar Messages

  • My 2 monitor stopped showing the image after update

    Hi, a few updates ago, I think the second, my 2 monitor stopped showing the image, the system detects it but either have to restart or start the screen saver so that the image is activated, I I tried change the monitor, cables and is the same problem ... what happens alguein miso, know what to do? ... greetings and thanks in advance

    This can be caused by a problem with the file places.sqlite that stores the bookmarks and the history.
    * http://kb.mozillazine.org/Bookmarks_history_and_toolbar_buttons_not_working_-_Firefox

  • I've been using LR with my Nikon D3200 for a year or so. Shooting in RAW/NEF no issues with import etc until I updated LR and now I can't get LR to allow me to select when I try to import. It does show the images but they're grayed out and not able to be

    I've been using LR with my Nikon D3200 for a year or so. Shooting in RAW/NEF no issues with import etc until I updated LR and now I can't get LR to allow me to select when I try to import. It does show the images but they're grayed out and not able to be selected. Any thoughts? TIA

    Greyed imaged in the Import dialog box mean you have already imported the photos into Lightroom, so there is no need and no benefit to importing them a second time.
    Just go to the Library module, search for the desired photos, and resume working on these photos.

  • Rendered html pages in results file(html) not showing the images of origina

    hi,
    rendered html pages in results file(html) not showing the images of original page
    when i click on rendered html pages of different html section of a results file.
    both master and tested as well.
    thx
    pasumarthi

    By design, the report will not show the images, will not apply imported css or javascript files and will not show framesets. Also, in the case that an image is shown there is no guarantee that that was the image that was seen when recording/playback the script.
    The rendered html pages that are shown in the report only contains the structure of the html page. If an image is shown the image will be a reference to the location of the image and not a saved copy of the image as part of the report. If the website has a simple structure this can give an idea of what was different. If the website relies extensively on images, stylesheets or javascript to present the information then this report feature becomes less useful.
    Few weeks ago I requested a feature request in order to be able to see in the report the page exactly as it was when recording the script and exactly as it was when the script was played back. In the way that the feature request was written it specifies the use of screen captures or saving the page as a pdf file.
    Regards,
    Zuriel

  • Can't show the image in Firefox

    I have a problem to show the image in Firefox. They can show
    in Explorer. Does anyone help me with this? You can visit the site:
    www.norskbrannsikkerhet.no to see the problem.

    The problem is the source for the image, you have
    <img src="X:\CVS Norge\94 Prosjekter\945
    Trading\SovReflex\Bilder\Thumbs\litenalarmpakke_it400.jpg"
    alt="test"
    border="0" align="top" id=""
    onclick="MM_goToURL('parent','produkter/prodDetal.cfm?ProdID=21');return
    document.MM_returnValue" />
    So the source for the image is referring to a filepath, ie
    X:\ rather than a
    web path, so you`ll only see the image on your computer
    connected to the X
    drive. You need to change it to a web relative path, and then
    it will work.
    Gareth
    http://www.phploginsuite.co.uk/
    PHP Login Suite V2 - 34 Server Behaviors to build a complete
    Login system.

  • Upon launch of Lightroom after initial instalation a warning came up that said lightroom needs to create temporary files and cant open.  The it opened and the catalog i imported will not show the images.  How can I give permission? Running windows 8.1 64

    Upon launch of Lightroom after initial installation a warning came up that said lightroom needs to create temporary files and cant open.  Then it opened and the catalog i imported will not show the images.  How can I give permission? Running windows 8.1 64 bit.  I have avast virus software.

    Upon launch of Lightroom after initial installation a warning came up that said lightroom needs to create temporary files and cant open.  Then it opened and the catalog i imported will not show the images.  How can I give permission? Running windows 8.1 64 bit.  I have avast virus software.

  • When I create a DVD slide show, the images on TV are 4:3 instead of 16:9. Fix? (Using version 11.)

    When I create a DVD slide show, the images on TV are 4:3 instead of 16:9. Fix? (Using version 11.)

    Hi Christina,
    I used it because other facets of my work in graphics require conversion, not just FCP, so I am used to popping it open quickly using it on the fly, in the field when shooting. I back up, then convert typically on my laptop while it sits on the seat of my pickup while I am photographing the next portion of the training. I do have the files backed up (in ordered structure as shot and preserved on the cards) both on my laptop, also mirrored in the RAID and once again on a second external firewire LaCie and make sure that every little file is in there as it should be. Thanks for the info. on that though, appreciate it. Will probably switch to using FCP to that level of Log and Capture in the future because it seems more basic. I am not sure using L&C would make any difference on the problem I seem to be having here. I will create a small sample file and give it a try for future reference. Again, thank you.
    Up until this week the  Quicktime conversions I have been creating and composing from have been compressed in H.264 (720 X 480 to fit our LMS stage), and have been working well without a hitch. And 8 of the 11 of these sequences are still exported to a true 16:9 without a hitch. They are sharp, bright and the color is great. The three orphans are also sharp with good color, however squished from side to side. It simply makes no sense that data that has been saved identically, edited identically and exported with identical settings would change in mid-stream like that.
    Thanks for taking the time to reply. I do appreciate that very much.

  • Coverflow stopped showing the image....

    Hello All:
    It used to be when I opened a folder in coverflow, it would show the images or part of the document. I would hit the space bar and it would come in larger for me to look at the document/image more closely.
    So I changed/touched/did something that all I get now is an ICON of what that file is and not the preview. For Example, if it is an Adobe Illustrator file, I get an orange sheet with the letter ai on the sheet.
    What do I need to do to change this back,
    any help would be greatly appreciated,
    paul

    Hrmmm.... well I kind of figured that coverflow does not show all contents on all items.
    It seems to show photos and certain files but not ai files or psd files.
    Any other thoughts or suggestions welcome,
    Paul

  • Lately when I do an images search only the first page actually shows the images- the rest show blank squares- why, and how do I fix it?

    Over the last week I have noticed more and more that my searches do not show up properly. Today only the first page of images actually show, the rest are blank spaces, but if I click they go to the image site. The rollover does not show either.
    What can cause this, and how do I fix it? I have tried various safe settings but this has no eefect at all.
    Thanks.

    Clear the cache and the cookies from sites that cause problems.
    "Clear the Cache":
    * Tools > Options > Advanced > Network > Offline Storage (Cache): "Clear Now"
    "Remove Cookies" from sites causing problems:
    * Tools > Options > Privacy > Cookies: "Show Cookies"

  • How to upload Images to azure media services and show the image on on click on Link?

    Hi,
    I want to upload the image to the Azure media service asset and show the Link on the page. When use clicks on the Link I want to show it user. How can I implement this with C#? Now I am uploading the image to asset as in the normal way and getting the URL
    for that. But I am not able to show it user when he click on the image link.
    Thanks,
    Pavankuamr H K

    HI
    Azure media services has a RESTful service and a C# SDK that you can use to interact with the Azure Media Services.
    Here is the documentation and sample code for calling the Media services and using the SDK:
    https://msdn.microsoft.com/en-us/library/dn735908.aspx?f=255&MSPPError=-2147217396
    Aram Koukia | Blog: koukia.ca | Twitter:
    @aramkoukia

  • I have just purchased a Nikon D7000 and iPhoto downloads jpgs but does not show them. It shows an empty frame. If you double click the frame it will show the image. I have tried importing images from the Nikon provided software and the same thing happens.

    I just purchased a Nikon D7000. However, iPhoto does not display JPEG images. I seems to download ok, but displays only an empty box. Double clicking on the box opens the image in a single display window. It does the same thing when importing from Nikon's supplied software. Forget about handling RAW files. Now, I'm having difficulty importing JPGs from Photoshop files for slide shows or use in iMovie.

    As a Test:
    Hold down the option (or alt) key and launch iPhoto. From the resulting menu select 'Create Library'
    Import a few pics into this new, blank library. Is the Problem repeated there?

  • Need to show the images in calculated column based on the condition in sharepoint 2013.

    Hi ,
    I'm working in sharepoint 2013, In this i want to show an image in calculated column based on the condition, but image is not showing .
    In sharepoint 2010 its working with help of javascript in content editor on the same page. Same thing i tried in SP 2013. but doesn't work.
    Could any one please give proper solution for this?
    Thanks in advance.
    by,
    Siva.

    Hi please provide the JS you have used in the content editor as well as the calculation for the column so we can better understand what's maybe differs?
    Blog: chrisstahl.wordpress.com Twitter:
    @Cstahl

  • Mouse Hover Shows the Image Name

    RoboHelp HTML Version 9
    Hi,
    In the WebHelp display in IE, the file name shows when I hover over an image.
    I could put in a screen tip, but I would have to do that for every image and that will be time consuming after-the-fact.
    Can anyone tell me how to change the output so the file name does not display for ALL the images.  I looked in the WebHelp Settings dialog, but can't find anything in there.
    Thanks!!
    Natalie

    For what it is worth, I believe this problem is fixed in Rh10.
    See www.grainge.org for RoboHelp and Authoring tips
    @petergrainge

  • Will not allow images on websites that it used to allow, for example, when trying to post on Craiglist, it will not show the images I have to copy in order for CL to approve my post

    will not allow certain images - for example, cannot see the images I need to copy on Craigslist in order for CL to approve my post.
    == This happened ==
    Every time Firefox opened
    == we moved the computer and reconnected it

    Check the image exceptions: Tools > Options > Content: Load Images: Exceptions - See [[Options window - Content panel]]
    See [[Images or animations do not show]] and http://kb.mozillazine.org/Images_or_animations_do_not_load

  • File Link to show the image or logo

    Database Version:10g
    Report Builder Version:10g
    Good Morning to one and all,
    Guys Iam Facing the problem to show a logo on the report using the
    Image Url option.If i use the image option and set the path of the logo it is displaying but when i change the option Source File Format to Image Url and Source File name to http://www.XXXXX.com/XXX/images/logo.jpg it is only displaying the text.
    Plss help me out guys
    Thanks & Regards :)

    Denis Thanks for the reply :)
    Actually iam not setting any System parameters.Iam just running the report using Run paper layout option Iam not running it on web.
    Is it compulsory to Run the report in web or set the system parameters to display the logo using the File link???
    Regards

Maybe you are looking for

  • Portege 3490, Windows won't boot - how to reinstall?

    Hi, i have bought a secondhand portege laptop in US a few months ago. it was quite a bargain, though unfortunately it came without both floppy and cd drives, only with external network adaptor. The problem is that now WinXP doesn't boot up due to som

  • Soundbooth cs3 wont open in OS X.6.2

    I recently upgraded to MAC OS 10.6.2 and found that Soundbooth CS3 gives me an error message when I try to open.  The message is that "SoundBooth cannot open at this time.  It must be repaired by first uninstalling and then reisntalling Soundbooth." 

  • Including html code into my iWeb site

    Hi, I would like to include googles Analytics tracking code to my website. In order to do this, they say I have to "Copy and paste the code segment into the bottom of your content, immediately before the </body> tag of each page you are planning to t

  • How can i improve this design?

    hello, i'm creating a website for consulting company which specialises in measuring greenhouse gas emissions. i have been trying to come up with a good, simple, basic, professional design for my website. this is what I have come up with so far - it i

  • IPhone photo default size / dimension is too big - Fix?

    iPhone space is expensive When we take a photo with the iPhone (3g and 4s-at least), it's approx 2MB (for a jpg)! We can have more room in iPhone storage for more music, photos, etc... My Windows-7 detects the phone and Windows-Explorer auto-opens; t