Image display problems

Ask a Question related to Coldfusion Database Access, Design and Development.

  1. #1

    Default Image display problems

    I created a database using access that has 2 tables one displays the product id
    and its descriptions, the other table has the productid and a text link that
    will show the image that matches that particular product.

    However, when I run the search form and display the results I get a text link
    to the image and not the actual image. How do I configure Coldfusion MX7 to
    display the image that is associated with that particular link?

    rudodoo619 Guest

  2. Similar Questions and Discussions

    1. Random image display
      I am doing a website, www.jishanair.com/test I currently on the homepage have a huge image, which i want to change randomly whenever someone...
    2. How do I display and Image
      I am currently developing an application for one of my clients, but I am having problem with displaying images after they have been stored in a...
    3. image display
      hi i want to show some images on my website which relate to a movie or an actor how can you store images in an access database and then show them...
    4. Display different image between dates using ASP
      Hello -- I would like to display a different logo on my website for different seasons of the month. I currently have a logo for Halloween,...
    5. How can I display an image within a script?
      That's a very good question. I'd like to know the answer to that as well. Dan Anderson wrote:
  3. #2

    Default Re: Image display problems

    Could you provide an example of the text link as it appears in the database?
    Are you using an <A> tag to make the link hot? Are you using an <IMG> tag with
    the link specified? See code below for example.

    <CFQUERY NAME="getImage" ... >
    SELECT id, link FROM linkTable WHERE ...
    </QUERY>

    <CFOUTPUT QUERY="getImage">
    <A HREF="goToDisplayLargerImage.cfm?id=#id#"><IMG SRC="#link#" ... ></A><BR>
    </CFOUTPUT>

    jdeline Guest

  4. #3

    Default Re: Image display problems

    Got it figured out, thanks though!!!

    HOwever I do have another question if you can answer it

    I have created a search form that links to the master detail page set and from
    there has a hyperlink that goes to the detail page.

    Now the search form has 3 different types of categories to search from.
    These different categories all have different field values.

    How would i create the detail page where if the value in a certain field is
    null, that certain field will not be displayed on the screen

    rudodoo619 Guest

  5. #4

    Default Re: Image display problems

    You wrote:
    "I have created a search form that links to the master detail page set and
    from there has a hyperlink that goes to the detail page.

    Now the search form has 3 different types of categories to search from. These
    different categories all have different field values.

    How would i create the detail page where if the value in a certain field is
    null, that certain field will not be displayed on the screen "

    In your last sentence, are you refering to the detail page or the master
    detail page?

    jdeline Guest

  6. #5

    Default Re: Image display problems

    The detail page.

    What I am trying to say is that these 3 search categories have some values in
    common and some values that aren't. So what I did was just display all the
    values from the query in the detail page.

    However, if a value is null in the detail page I don't want it showing up at
    all

    How would I do that

    rudodoo619 Guest

  7. #6

    Default Re: Image display problems

    Are you passing the variable(s) that contain these values (possibly null value)
    to the detail page? If so, use the IsDefined("variableName") to see if the
    variable exists, or use <CFIF variableName IS ""> to see if it is empty. Then
    act accordingly.

    jdeline Guest

  8. #7

    Default Re: Image display problems

    Would this work

    <cfif len(trim(name)) neq 0>
    #name#<br>
    </cfif>
    rudodoo619 Guest

  9. #8

    Default Re: Image display problems

    Yes I am passing it to the details page
    rudodoo619 Guest

  10. #9

    Default Re: Image display problems

    Try it and see if it works.
    jdeline Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139