Ask a Question related to Macromedia ColdFusion, Design and Development.

  1. #1

    Default CFHTTP help

    We have an in-house built publication system that creates .htm files from
    database content. For a specific project, I need to modify the way that our
    system creates files to include cf code. See code for further explanation...

    In my template, I have a the following code:

    <cfif find('MSIE', cgi.HTTP_USER_AGENT)>
    <img src="images2.0/spacer.gif" width="7" height="8">&nbsp;
    <cfelse>
    <img src="images2.0/spacer.gif" width="11" height="8">&nbsp;
    </cfif>

    The template displays it properly, but when I publish the web file, it will
    create a file that depends on what browser I was
    using to publish. How do I get CFHTTP, if it is CFHTTP related, to include
    the code in the file? Is there another way to
    this? Thanks for any help!

    al_galiza Guest

  2. Similar Questions and Discussions

    1. CFHTTP
      Hello, I need to send data from a CF page to an asp.net page for processing via a URL string. The ASP page takes three parameters. Those being...
    2. CFHTTP Put Method
      Scenario is one in which I am moving image files from a local laptop running CF Developer Server to a centralized CF Enterprise server. Have been...
    3. Cfhttp problem
      Im trying to loop through an array elements (in this case URLs) using cfhttp, there are several elements in the array but I can only cfhttp the...
    4. cfhttp erro
      I have been trying to read a tab delimited text file with cfhttp get and I keep getting this error - The column name '<!DOCTYPE HTML PUBLIC...
    5. cfhttp error
      Ugh - I give up. Hi. I have the following line of code: <cfhttp url='#appFullPath#temp_sfiles/#session.userid#/#name#' method='head' /> When I...
  3. #2

    Default Re: CFHTTP help

    I may be a bit confused.

    Is the code fragment you show a part of the ColdFusion template that generates
    the .HTM file? If so, you are asking the template to create an <IMG> tag based
    upon the browser that is running the template. In other words,
    CGI.HTTP_USER_AGENT is the publisher's browser, not the user's.

    jdeline Guest

  4. #3

    Default Re: CFHTTP help

    Right, the code fragment included does depend on the browser running the template. I want to be able to carry over that code to create the web file.
    al_galiza 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