Show image

How can I show an image
- based on the session state in a region or
- or an item based on a database column
eg. :P4_STATUS could be 1,2,3
if it is 3 then red_gif
if it is 2 then blue_gif
if it is 1 then green_gif
Thanks
Thorsten

If you wanted to do this client side (depending on what web browser you ar coding for) instead of server side, then you could use the display style of inline/none of the IMG tag. Then you could use Javascript to decide which image to display based on the value of the item with the P4_STATUS ID.

Similar Messages

  • Pop up a window to show images

    Hi, I am trying to show images when the user rolls the mouse
    over the image but I want to show them as a pop up window only when
    the user is on the image.
    Any ideas how can I handle this? I will have variety of
    images and want the same behavior for all of them.

    mouseOver and mouseOut event functions for the images.

  • My mac will not show images when on the internet?

    My mac will not show images when on the internet?  I think I have inadvertently changed some settings but nor sure which one.

    I am going to assume you are using Safari here. If so then go to the Apple menu bar and hit Safari-> Preferences.  Under the Apperance tab there is a check box that is called "Display images when the page opens".  Check if that is unticked.

  • How can i show images from different folders  in image gallery

    Hi All,
             i have downloaded and executed photo viewer image gallery application.
              in that we r showing images sequentially what we have defined in xml file.
             but i want show images randomly or i want show images from different gallary.
    Can any one help me.
    thanks
    Raghu.

    WaqarLFC7 wrote:
    On Windows:
    Ctrl + click on the songs you want to group - then right click and click get info and it will ask you if you want to get info for multiple items click YES then under album name it whatever you want and them songs will be grouped into 1 album.
    Mac:
    Same procedure but hit SHIFT instead of CTRL.
    Actually, it's right click or ctrl click, same as windows.

  • Iphone 4 will not show up on computer or in itunes. After several attempts to restart, only showing image to connect to itunes. Everything is plugged and it and I have the most up to date version of itunes.

    My iphone 4 only shows image to connect to itunes. It will not come up in itunes and does not appear to be connecting to my computer. I have attempted to restart my phone numerous times but it just keeps going back to this same screen. Please help.

    Did you make a backup because you can't recover what's on our phone. Follow these steps to resotre your phone (the phone has to be plugged into your computer):
    1) On your phone, press your sleep button for 2 seconds
    2) After the two seconds, don't release the sleep and press the home button for 10 seconds
    3) Release the sleep button and keep the home buttton pressed untill your computer detects your phone.
    4) A window should pop up and you should have the restore button. Press it.

  • CRS 10.1 with Endeca 3.1.1 -home page doesn't show image and promo products

    Thanks to this forum and especially cmore I'm close to setting up my local dev environment, but still have something to resolve.
    I have ATG 10.1.2 + CRS + Endeca 3.1.1. I installed BCC with Staging and Production (switchable) stores.
    The problem is with Production CRS - both US Store and Home Store don't show image and promoted products on Home page.
    What I see below Top Category pane is empty square. Unlike Production, home page on Stage works fine - I see homepage_promo_storeSiteUS_en_anonymous.png and promoted products.
    I think the problem is not related to Endeca, as I currently connect both Stage and Prod to the same Endeca CRS, I also believe that issue is not related to configuration - I tried to run production with Stage configuration, and it changed nothing. I believe the issue is somewhere in data (DB) - but I did full deployment for Prod and it didn't help. I verified targeters and slots on Prod through ACC, and they looks fine. So don't know at this point what to do next.
    While doing full deploy I see some errors in the log which might be related to the issue, But the same errors I see on Stage as well and still Stage works without issues:
    10:17:41,805 ERROR [nucleusNamespace.] Invalid attempt to resolve component /atg/registry/Slots/HomeTheme in scope global. It is defined in scope request
    10:17:41,811 ERROR [nucleusNamespace.] Invalid attempt to resolve component /atg/registry/Slots/PromotedProduct1 in scope global. It is defined in scope request
    10:17:41,816 ERROR [nucleusNamespace.] Invalid attempt to resolve component /atg/registry/Slots/PromotedProduct2 in scope global. It is defined in scope request
    10:17:41,819 ERROR [nucleusNamespace.] Invalid attempt to resolve component /atg/registry/Slots/PromotedProduct3 in scope global. It is defined in scope request
    10:17:41,822 ERROR [nucleusNamespace.] Invalid attempt to resolve component /atg/registry/Slots/FeaturedProduct2 in scope global. It is defined in scope request
    10:17:41,826 ERROR [nucleusNamespace.] Invalid attempt to resolve component /atg/registry/Slots/FeaturedProduct3 in scope global. It is defined in scope request
    10:17:41,829 ERROR [nucleusNamespace.] Invalid attempt to resolve component /atg/registry/Slots/FeaturedProduct4 in scope global. It is defined in scope request
    10:17:41,832 ERROR [nucleusNamespace.] Invalid attempt to resolve component /atg/registry/Slots/FeaturedProduct5 in scope global. It is defined in scope request
    10:17:41,836 ERROR [nucleusNamespace.] Invalid attempt to resolve component /atg/registry/Slots/FeaturedProduct1 in scope global. It is defined in scope request
    10:17:41,839 ERROR [nucleusNamespace.] Invalid attempt to resolve component /atg/registry/Slots/CategoryPromotionContent2 in scope global. It is defined in scope request
    10:17:41,842 ERROR [nucleusNamespace.] Invalid attempt to resolve component /atg/registry/Slots/CategoryPromotionContent1 in scope global. It is defined in scope request
    Last update: I compared Stage and Prod home pages HTML code, and notice that the first difference between two pages is absence of endeca-slot Div, the below code present on Stage, and is Not present on Prod:
    It is the first difference only , there are a bunch more.
    <div class="endeca-slot" zone="/content/Shared/Global Search Configuration/Search Box">
    <script type="text/javascript">
    if(Endeca.Site) {
    Endeca.Site.Audit.contents["/content/Shared/Global Search Configuration/Search Box"] = [{"@type":"SearchBox","endeca.internal.created.by":"admin","rule.msg":"Fired","endeca.internal.last.modified.by":"admin","rule.msgcode":"13","rule.state":"fired","endeca.internal.resource.path":"\/sites-live\/NYCoCRS\/content\/Shared\/Global Search Configuration\/Search Box\/Search Box","endeca.internal.workflow.state":"ACTIVE","type":"DGraph.MerchDebug","Title":"Search Box","rule.id":"1","endeca.internal.last.modified":"2013-03-20T11:43","endeca.internal.date.created":"2013-03-20T11:43","Zone":"\/content\/Shared\/Global Search Configuration\/Search Box"}
    </script>
    Edited by: PKU on Apr 1, 2013 8:32 AM
    Edited by: PKU on Apr 1, 2013 8:35 AM

    After some analysis and experiments:
    Most likely the issue is with Scenarios. HomeTheme Slot is populated by Theme scenario.
    For some reason the slot remains empty on "bad" environment. On "good" environment the slot contain promo content item after the first call of the slot. I checked respective targeter and promo content item, and they look OK, so I believe something wrong with Scenarios.

  • How to show image in oracle adf if i have data in byte[] ?

    For first time I am using <af:inputFile> to get file of image type from any location on my system and convert the data in "byte[]" and store it in database...
    When i visit page again i need to show uploaded file which is coming to me "byte[ ] ".
    To show image i am using <af:image> component.
    Help will be appreciated.

    Check this blog post: http://tompeez.wordpress.com/2011/12/16/jdev11-1-2-1-0-handling-imagesfiles-in-adf-part-3/
    Dario

  • How to show image in a Transperent form ?? screen shots attached

    Hi
    Help me in making Images appearing as Transperent . Screen shots attached
    I am having a TextInput and a Search Button (The Functionality is that user can enter something in this TextInput and makes a Search Operation by pressing Search Button .)
    At the Initail screen display i need to show Some Image in transperent  Inside this TextInput  , when Mouse is focused on this TextInput , the Image will be completely Invisible .
    Now the question i want to ask is , how to show image in a Transperent form ??
    Please find the screen shots attached with this Thread .

    Thanks for specifying  the alpha property of an Image .

  • Apache: showing images in ascending order by name

    hi:
    i have several detail pages where i show images contained in
    a folder:
    $folder = dir($path);
    while ($folderEntry = $folder->read()){
    if ($folderEntry <> "." && $folderEntry
    <> ".." &&
    substr($folderEntry, -6, 2) <> "00") {
    echo '<li><img src="'.$path.$folderEntry.'"
    /></li>';
    $folder->close();
    in the local server they appear in the way i want, in
    ascending order by
    name (img_01.jpg, img_02.jpg, img_03.jpg, ...) but in the
    remote server
    they appear in, apparently, random order
    i activated FancyIndexing in the httpd.conf file but it
    doesn't solved
    the problem:
    # Directives controlling the display of server-generated
    directory
    listings.
    # FancyIndexing is whether you want fancy directory indexing
    or
    standard
    IndexOptions FancyIndexing
    # End of indexing directives.
    i know i can store the filenames names in an array an sort it
    but i
    prefer to control it in the server
    local (OS X 10.4.10)
    Apache/1.3.33 (Darwin) PHP/5.1.6
    remote (Red Hat Linux 2.6.9-34.ELsmp)
    Apache/2.0.52
    tia,
    jdoe

    Templeton's suggestion is best if needing help with Microsoft Entourage. Since I know the answer is "not possible" I can at least steer you toward an AppleScript that will give you a workaround. Have a look here <http://www.barryw.net/weblog/files/category-5.html>.
    Further questions about this script should be directed either to its author or to Microsoft's Entourage newsgroup <http://groups.google.com/group/microsoft.public.mac.office.entourage>.
    Hope this helps! bill
    1 GHz Powerbook G4   Mac OS X (10.4.9)  

  • Showing Image Stored In DataBase

    Hello Friends,
    I have images stored in MySQL database. In a blob field. In a desktop application i have used
    blob b=rs.getBlob("Picture");
    byte[] buf=b.getBytes((long)1,(int)b.length());
    ImageIcon imgIcon= new ImageIcon(buf);
    Image img=imgIcon.getImage();
    Graphics g=image.getGraphics();
    g.drawImage(img,0,0,320,240,image);
    the thing worked fine. But now i have to show images over web. I am not able to uderstand that how to show images. As i m unable to get Graphics from any of the component.
    Help Me,
    Its urgent,
    thanking u all
    Abhilash Jain

    The common method to include binary information (image, PDF, document, etc) is to Base64 encode the file and store the resulting character string in the XML. It would be up to the receiving system to handle the encoded information in the XML.

  • How to make mouseover effect text show image in popup window or tooltip?

    I am trying to display a popup image in a new window when the mouse moves over some text. Or perhaps, the image could display in a tooltip when the mouse moves over some text.
    However, I have achieved the functionality of an image appearing above the text when the mouse moves over some text. This is how I did this:
    I put this code into the Page HTML Header:
    <script type="text/javascript">
    <!--
    function setFirstChildImgDisplay(el,vis) {
    if(!el || !el.getElementsByTagName) return;
    el.getElementsByTagName('img')[0].style.display=vis;
    // -->
    </script>
    I created a region and put this in the Region's Title field:
    {div onmouseover="setFirstChildImgDisplay(this,'inline')"  onmouseout="setFirstChildImgDisplay(this,'none')">Check out Page 1 here <img src="#WORKSPACE_IMAGES#DGNR Preview Page 1.bmp" alt="Page 1 Preview" style="display:none;">{/div}
    I am thinking that I should not have all of this code in the Region's Title field. But, I don't know where else to put it in APEX.
    So my questions are:
    1. how to get an image to display in a popup window or as a tooltip when the mouse is moved over some text?
    2. where should the {div} content be placed in APEX, if not in the Title field?
    Please note that I used '{' & '}' instead of '<' & '>' just so the div would display in this post.
    Also, I would like to give credit to this website because this is where I found out how to do what I have provided above.
    http://forums.devshed.com/web-design-help-2/mouseover-effect-text-shows-image-321876.html
    Thank you in advance,
    Maggie

    It's just an image map. Play with the settings. Here's a shape layer making a hole in the water and adding a bit of color.

  • Showing Image in table

    Hi
         I want to show image in table based on the result i have a field status which contains the 01 / 02 / 03 values and now i want to show 3 images insted of value I have created one value attribute of string type and assigned the path of the image to it but its taking the image of last record only so can any one tell me what i have to do for this bellow is the code i am using
    wdContext.currentContextElement().setImgXiStatus("");
    if(xistatus.equals("01"))
        wdContext.currentContextElement().setImgXiStatus("green.bmp");
    else if(xistatus.equals("02"))
        wdContext.currentContextElement().setImgXiStatus("yellow.bmp");
    else if(xistatus.equals("03"))
        wdContext.currentContextElement().setImgXiStatus("red.bmp");
    else
        wdContext.currentContextElement().setImgXiStatus("");
    Thanks
    Ninad

    1 - NODE_MY_TRNAS
    1.1---NODEoutput
    1.1.1---NODEetData
    1.1.1.1---NODEimageNodeHelper
    1.1.1.1.1---icon
    Set singleton = false for node "NODEimageNodeHelper" and selection(NODEimageNodeHelper) = 1:1.
    Assuming card(NODEetData) =0:N, you can set the icon for row number i as follows:
    INODEetDataElement e = wdContext.nodeNODEetData().getNODEetDataElementAt(i);
    e.nodeNODEimageNodeHelper().currentNODEimageNodeHelperElement().setIcon("icon.gif");
    For naming nodes, the following rule is useful: Name in camel-case, first letter uppercase, for cardinality =0:N, use plural name.
    Example:
    Node "Books" (node, card=0:N) leads to IBooksNode, IBooksElement interfaces.
    Armin

  • How to show images in horizontal scroll field in blackberr

    hi i want to show images in horizontal field manager and scroll right to left. focused image should be show up.
    Solved!
    Go to Solution.

    please reply with your device model (e.g. Blackberry Curve 8520)
    Click "Accept as Solution" if your problem is solved. To give thanks, click thumbs up Blackberry Battery Saving Tips | Follow me on Twitter

  • Jpeg icons not showing image in My Pictures

    This hasn't happened to me before. When I edit a jpeg in Photoshop CS3 in this case, and save it in a file in My Pictures, when I go to find it again I notice there is just the Photoshop Logo instead of the actual picture image showing, not too helpful to find pictures you are looking for. It is still a jpeg but it switched from the actual picture to the logo after I saved it from Photoshop. Any tips? I'm hesitant to edit any more from my trip for fear of having to open up one at a time to see what it is!
    Thank you for any help.

    Vista 32bit is the computer I
    am on. On another reply they asked if I had the wrong Windows Explorer setting so didn't show images. All jpeg images show as downloaded from camera but when I edit and save from Photoshop, those edited images then show the PS icon only, no picture.

  • Why are slide show images less sharp than preview images?

    Dear Aperture users,
    as documented in the manual and on Apple's support pages, Aperture 3 uses the preview images for its slide show. However, when I compare the quality of my preview images in full-screen mode with the quality of the slide show images, the preview images clearly look sharper.
    Apparently, Aperture's slide show does not simply use the preview images as documented, but applies some sort of "adjustment", resulting in less crisp looking images. Since I haven't found any satisfying answer yet, my questions are:
    1). What exactly is the adjustment that slide show applies to the preview images?
    2). Can I somehow tweak this adjustment, say, with a terminal command?
    Best regards,
    Dirk61.

    iPhoto can make two different types of slide show movies. It would help to know which you're making.
    One is made via the File/Export to QuickTime movie and makes a 4 track file with a simple fade effect. These use the Photo-JPEG codec.
    The other is a 30 fps "video" using H.264 video codec via the "Share" menu.
    A third method (rarely used) is to Export to iDVD. This makes an absurdly high data rate MPEG-4 video. This is also found under the Share menu.
    The MPEG-4 video codec also includes an "automatic" gamma correction feature which compensates for the gammas difference between Mac's and PC's.
    Try one export to iDVD. Include your audio track prior but use a high quality (.aiff) sound file. No need to actually "burn" the DVD. You can even close iDVD after it opens. You'll find the new movie in your Users Movie folder.
    Open it with QT Pro and export to a new .mov file. Adjust the data rate to something more reasonable and add some audio compression.
    If the colors still look too dark you can use the built in Filters in the Export dialog. You can adjust B&C or HSL or even use ColorSync Profiles that can help correct the image quality (if needed).

  • Problem of showing image in opera

    hi,
    I have used following code for for showing image with jsp:
    <img src="<%=image%>"> height="100" width="100">When i open this with Internet Explorer then it can show image. But whwn open it in Opera then it cannot show images. What's the problem of my code? What will be solution of this problem? IS there anybody can help me? PLese give me a solution
    With regards
    Bina

    Did you bother to override getPreferredSize(), getMinimumSize() and getMaximumSize() to return sizes appropriate for the image you're drawing? If you didn't and you're not adding anything to the JPanel it's just going to act like an empty JPanel.

Maybe you are looking for

  • Where to file a complaint with Apple support for issues?

    I've been havintg ALOT of issues as of late with my Macbook Pro. Let me start at the beginnig: I took my Macbook in to the Apple store around December of last year, I was having an issue with the screen. When it was pushed back a bit too far, it woul

  • Garbage characters in web pages

    Produced a page in iWeb then uploaded it to my webspace using Secure FTP. Now I have garbage characters in it with  wherever there's a return and a bunch of garbage for every apostrophe. Obviously I have some sort of problem with the character set b

  • Issues with 'next' and 'previous' buttons grayed out in 'Preview'

    First off.. HELLO MAC FORUM!! Woo hoo!! I just got a MacBook Pro and I'm LOVING it.. I'm having one small issue that I can't find help with after googling.. when I'm in 'Preview' viewing pics my 'next' and 'previous' buttons are grayed out and I've l

  • AVI vids not playing on integrated Intel but play on AMD

    If i pull the power cord from my new Macbook Pro 15(2011) and Play most of my movie/video files (avi) regardless of quicktime player or VLC it shows a black screen with sound only. If i put in the power cord and it auto switches to the AMD chip they

  • Need help with java browser "Back" button

    All: I'm trying to make the "Back" button in my Java web browser work. Any help would be greatly appreciated. Here is my code: import javax.swing.*; import java.net.*; import java.awt.*; import java.awt.event.*; import javax.swing.event.*; import jav