Forum Moderators: phranque

Message Too Old, No Replies

cfhtmlhead - ColdFusion

Does it work anywhere?

         

RevoltPuppy

6:52 pm on Nov 30, 2007 (gmt 0)

10+ Year Member



I'm using cfhtmlhead as a last resort to fix a problem with validation, namely Application.cfm inserting JavaScript before the doctype.

So, within application.cfm I have written:

<cfhtmlhead text="<script src='/__utm.js' type='text/javascript'></script>">

This is supposed to insert the "text" into the <head> area of each page, but it continues to be posted before the doctype. Why is this?

stajer

8:30 pm on Nov 30, 2007 (gmt 0)

10+ Year Member



I think the problem is that application.cfm is processed even before your template is called by cf server. Because of that, using cfhtmlhead puts it before any code is generated at all. Try putting it in your footer.cfm or onrequestend.cfm.

bcolflesh

8:35 pm on Nov 30, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I think the problem is that application.cfm is processed even before your template is called by cf server.

Correct.