Professional Web Applications Themes

cfcontent problem - Coldfusion - Advanced Techniques

my codes is like this: <table> <tr> <td>Hello World</td> </tr> </table> <cfcontent file="image/image.jpg" type=".........jpeg......."> and the page would not show the 'Hello World', any one can help me to solve this problem so i can see the Hello World and the image.jpg together at the same page??...

  1. #1

    Default cfcontent problem

    my codes is like this:

    <table>
    <tr>
    <td>Hello World</td>
    </tr>
    </table>
    <cfcontent file="image/image.jpg" type=".........jpeg.......">

    and the page would not show the 'Hello World', any one can help me to solve
    this problem so i can see the Hello World and the image.jpg together at the
    same page??


    alternative Guest

  2. #2

    Default Re: cfcontent problem

    cfcontent is not designed for what you're trying to do. There's a simple HTML tag that does it:

    <img src="image/image.jpg">
    Kronin555 Guest

  3. #3

    Default Re: cfcontent problem

    i think this is not an good idea, since all my image need secure display,
    that's why i use cfcontent, but since i need some information display on above
    the images. that's why i need a method to solve this problem...

    alternative Guest

  4. #4

    Default Re: cfcontent problem

    If that's the case, you could do the following:

    <img src="image/getImageSecurely.cfm?name=image.jpg">

    Then have image/getImageSecurely.cfm check user credentials, then do <cfcontent ...>
    Kronin555 Guest

  5. #5

    Default Re: cfcontent problem

    > cfcontent is not designed for what you're trying to do. There's a simple HTML tag that does it:

    Well it is (if you followed another thread about this somewhere).
    > <img src="image/image.jpg">
    <img src="someCfmFile.cfm" />

    Where someCfmFile.cfm contains the <cfcontent> tag to return the image
    data.

    --

    Adam
    Adam Cameron Guest

  6. #6

    Default Re: cfcontent problem

    hm... marvellous..
    this is what output i want.... thx a lot ya..

    alternative Guest

  7. #7

    Default Re: cfcontent problem

    Originally posted by: Newsgroup User
    > cfcontent is not designed for what you're trying to do. There's a simple
    HTML tag that does it:
    Well it is (if you followed another thread about this somewhere).
    > <img src="image/image.jpg">
    <img src="someCfmFile.cfm" />
    Where someCfmFile.cfm contains the <cfcontent> tag to return the image
    data.

    If he had said what he said in his reply in the original message, then yes, I
    agree. Based on his original post, it said nothing about a requirement that
    necessitated the use of cfcontent. Therefore, knowing what we know now, yes my
    original post was wrong. And don't be patronizing, please. I know full well
    what cfcontent can be used for, as reflected by my reply to his clarification.

    Kronin555 Guest

  8. #8

    Default Re: cfcontent problem

    Sorry, don't see what's patronising about my post, but I know how things
    can come across incorrectly in written text.

    Sorry you took offence: none was intended.

    --

    Adam
    Adam Cameron Guest

  9. #9

    Default Re: cfcontent problem

    I took your comment: "(if you followed another thread about this somewhere)" as
    being patronizing, but as you said, it's easy for things to come across
    incorrectly (read: misinterpreted) in written text.

    I apologize as well for reading into your post. No harm done.

    Kronin555 Guest

  10. #10

    Default cfcontent problem

    I have a <cfcontent type="application/vnd.ms-excel"> tag on a web page. When I
    go to the page, it does not bring up an excel spread sheet. Instead it it
    brings up an open save dialog. When I click open or save, an error box pops up
    saying that the file cannot be downloaded.

    What could be causing this?

    Thanks,
    Ken

    kp2q Guest

  11. #11

    Default Re: cfcontent problem

    There might be an error on the page. Try removing the <cfcontent> tag and making sure the page displays as you expect (except for being in HTML format instead of an excel file).

    JR

    jonwrob Guest

Similar Threads

  1. problem downloading using CFCONTENT & CFHEADER
    By gumnam in forum Coldfusion Flash Integration
    Replies: 0
    Last Post: September 21st, 04:10 PM
  2. Problem using cfcontent to view files??
    By rhileyrmax in forum Coldfusion - Getting Started
    Replies: 3
    Last Post: July 13th, 03:11 AM
  3. Problem with cfcontent and cht SHIFT_JIS
    By Ellis75 in forum Coldfusion - Advanced Techniques
    Replies: 4
    Last Post: May 31st, 06:37 AM
  4. cfcontent filename problem
    By amiller in forum Macromedia ColdFusion
    Replies: 2
    Last Post: May 12th, 08:34 PM
  5. DateFormat and cfcontent problem
    By dmx1999 in forum Macromedia ColdFusion
    Replies: 5
    Last Post: May 9th, 08:37 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not 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