Ask a Question related to Coldfusion - Advanced Techniques, Design and Development.

  1. #1

    Default CFCACHE and CSS

    I am trying to use CFCACHE for a page that uses several CFINCLUDEs. When the
    cached page is retrieved some of the styles, in the "masthead", "menu" and
    "footer" are ignored.

    Does anyone know why this is happening to me?

    <cfcache timespan="1" action="cache">
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html lang="en" xml:lang="en" xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-type" content="text/html; charset=utf-8" />
    <cfoutput>
    <title>Selling Your House? - #session.co_display_name#</title>
    </cfoutput>
    <link rel="stylesheet" type="text/css" href="main.css" />
    </head>
    <body>
    <table border="0" cellpadding="0" cellspacing="0" width="740" align="center">
    <cfinclude template="masthead.cfm">
    <tr valign="top">
    <cfinclude template="menu.cfm">
    <cfinclude template="sellers-cnt.cfm">
    </tr>
    <tr>
    <cfinclude template="footer.cfm">
    </tr>
    </table>
    </body>
    </html>

    drmaves Guest

  2. Similar Questions and Discussions

    1. cfcache, generated comment, & DOCTYPE
      Well, I was hoping this was going to be fixed in CF7 but it is not. I'm pretty sure there is no way around it, but I figured I'd ask here. When...
    2. Possible bug in cfcache on CFMX7?
      We received an error report indicating a cfhttp timeout on our server. What is interesting is that there are no cfhttp calls in the page. Here is...
    3. cfcache
      I want to know explanation of cfcache. But, I don't know how to do it and I'm confused about that. Then, I've just read cfcache example in cfstudio...
    4. <cfcache> and date format
      I have a CFM file which display a Form. As this form is built from queries and is alway the same, I add the <cfcache> at top of coding, And I get...
  3. #2

    Default Re: CFCACHE and CSS

    Have you tried holding CTRL when you reload the page? Sometimes IE doesn't like to reload stylesheets...
    Cannikinn Guest

  4. #3

    Default Re: CFCACHE and CSS

    I was able to sort this problem out myself. It had to do with using 'em' to indicate the size of fonts.
    I took out all occurances of 'em' and replaced them with 'px' and everything worked out fine.
    drmaves Guest

  5. #4

    Default Re: CFCACHE and CSS

    you shouould actually be using em

    that way the user can pick how large he/she wants your text, so if they cant see well, they would be able to still use the site.
    david_h 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