Just finished a huge migration to CF11 and there were multiple locations
where cfhtmlhead are used... and a new one added during migration. No
problems with that. Perhaps more details?
On Thu, Oct 16, 2014 at 9:34 AM, Dave Sueltenfuss dsueltenf...@gmail.com
wrote:
I'm working on a migration
Brad Wood wrote:
Ok, so I've got ajaxcfc running pretty smoothly, but I still need some
help with my major catching point-cfhtmlhead.
Don't use CFHTMLHEAD in your application.cfm or whatever then. Or, if
you do, wrap code around it that causes it *NOT* to happen on ajax calls.
cfif
That's funny, in CFAjax this doesn't cause a problem at all. I was just
blogging about using firebug and noticed how it comes back differently
in the response, so that preceding script blocks don't break the return.
http://www.fergusonhouse.com/blog/index.cfm/2006/7/26/firebug-cfajax
One of
#GetPageContext().getOut().getString()#
will return all of the rendered output thus far in a string. You can
parse through that yourself to find the head section and see what's in
there.
-nathan strutz
http://www.dopefly.com/
Tim Blair wrote:
Morning...
Is there any way that I can get
I'm in the same situation (CF 5) and need to be able to have several tags
used in the course of generating a single page alter the contents.
If I can't get access to the data, what I'm thinking of doing is keeping
any data destined for the HTML headers in my own request scope variable
and then
Ah. I remember this. I wrote an internal paper for MedSeek regarding
this bug. :P
This only happens under these conditions:
1) MS Internet Explorer as the browser.
2) CFLOCATION is called AFTER CFHTMLHEAD has been called. To be really
sure, I think CFHTMLHead should not be in the same CFM
Many thanks, James, your reply will be a useful reference for the future!
Gyrus
[EMAIL PROTECTED]
work: http://www.tengai.co.uk
play: http://www.norlonto.net
PGP key available
~|
Archives:
You tried cf_htmlhead instead? I had some issues with quotes etc in the
cfhtmlhead tag and htmlhead solved it...
Pretty sure that allows you do to:
cf_htmlhead
...javascript here
/cf_htmlhead
HTH,
John.
-Original Message-
From: Critter [mailto:[EMAIL PROTECTED]]
Sent: 27
And if you don't want to use a custom tag, and have CF 5, you can use
CFSAVECONTENT to define your header info.
Try:
CFSAVECONTENT VARIABLE=goesinHead
SCRIPT TYPE=text/javascript // LANGUAGE attribute is redundant and has been
deprecated
Try using text= and not text=''. You can get the double quotes in a
quoted string by doubling them up (so text=a string with another string
in it)
-Original Message-
From: Critter [mailto:[EMAIL PROTECTED]]
Sent: Friday, September 27, 2002 12:09 PM
To: CF-Talk
Subject: cfhtmlhead
oi
I usually do this:
cfsavecontent variable=script
SCRIPT LANGUAGE=JavaScript TYPE=text/javascript
window.open(../index.cfm,mainApp,width=+parseInt(screen.availWidth
* .90)+,height=+parseInt(screen.availHeight *90)+,status=yes,top=0,left=0,r
esizable);
/SCRIPT
/cfsavecontent
cfhtmlhead
That's a nice trick for handling long strings.
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Friday, September 27, 2002 2:32 PM
To: CF-Talk
Subject: RE: cfhtmlhead
I usually do this:
cfsavecontent variable=script
SCRIPT LANGUAGE=JavaScript TYPE=text
://www.atnetsolutions.com
-Original Message-
From: Brian Scandale [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 11, 2002 2:49 AM
To: CF-Talk
Subject: Re: cfhtmlhead
Sometimes I want to use cfhtmlhead to push some JavaScript into the
head tag.
Then in the body tag I want to include
onLoad
PROTECTED]
Sent: Monday, March 11, 2002 12:49 AM
Subject: Re: cfhtmlhead
Sometimes I want to use cfhtmlhead to push some JavaScript into the
head tag.
Then in the body tag I want to include
onLoad=JavaScriptFunctionCall().
However, the body is part of the incHeader.cfm which is included on ALL
.
_
steve oliver
senior internet developer
atnet solutions, inc.
http://www.atnetsolutions.com
-Original Message-
From: Brian Scandale [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 11, 2002 3:29 AM
To: CF-Talk
Subject: RE: cfhtmlhead
Yeah, I thought
11, 2002 12:49 AM
Subject: Re: cfhtmlhead
Sometimes I want to use cfhtmlhead to push some JavaScript into the
head tag.
Then in the body tag I want to include
onLoad=JavaScriptFunctionCall().
However, the body is part of the incHeader.cfm which is included on ALL
pages I'm using... so I need
cfoutput :)
What are you trying to accomplish?
jon
Brian Scandale wrote:
Is there a similar tag to cfhtmlhead that is used to add content into the body
tag?
Can't seem to find it if it exists
thanks,
Brian
__
Why
Sometimes I want to use cfhtmlhead to push some JavaScript into the head tag.
Then in the body tag I want to include onLoad=JavaScriptFunctionCall().
However, the body is part of the incHeader.cfm which is included on ALL pages I'm
using... so I need a way to place it there in a dynamic way.
: Monday, March 11, 2002 2:49 AM
To: CF-Talk
Subject: Re: cfhtmlhead
Sometimes I want to use cfhtmlhead to push some JavaScript into the
head tag.
Then in the body tag I want to include
onLoad=JavaScriptFunctionCall().
However, the body is part of the incHeader.cfm which is included on ALL
pages I'm
I have a question about the *ultra* nifty CF tag - cfhtmlhead.
I have several blocks of code (specifically style sheets) and
I would like to include in my html rendered documents. I
currently use cfhtmlhead to accomplish this and was wondering
if there was a mechanism that would allow
Use single quotes in the alert() or use a custom tag to implement CFHTMLHEAD the way
it should have been done:
cfif thistag.ExecutionMode IS "end"
cfhtmlhead text="#thistag.GeneratedContent#"
cfset thistag.GeneratedContent = ""
/cfif
Save this in a file called htmlhead.cfm and
Caused by the use of double quotes in your "Alert" call. Either use all
single quotes or use the CF_HTMLHEADBLOCK custom tag from the Developer's
exchange which allows you to bracket the text you want put in the header.
DC
- Original Message -
From: "Brian Thornton" [EMAIL PROTECTED]
To:
Did you try a single quote?
-Original Message-
From: Brian Thornton [mailto:[EMAIL PROTECTED]]
Sent: March 27, 2001 3:22 PM
To: CF-Talk
Subject: CFHTMLHEAD
CFHTMLHEAD TEXT="
script
!-- Hide the script from old browsers --
function loadalert ()
{alert("Your Message to Mike
Try single quotes around your alert message.
Dan
-Original Message-
From: Brian Thornton [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, March 27, 2001 3:22 PM
To: CF-Talk
Subject: CFHTMLHEAD
CFHTMLHEAD TEXT="
script
!-- Hide the script from old browsers --
function loadalert ()
Change your double quotes to a single quote (the ones that open and close
your heading text)
CFHTMLHEAD TEXT='
script
!-- Hide the script from old browsers --
function loadalert ()
{alert("Your Message to Mike was sent.")
}
// --End Hiding Here --
/script
'
- Original
maybe this:
'Your Message to Mike was sent.'
instead of:
"Your Message to Mike was sent."
???
Jay Patton
Web Design / Application Design
Web Pro USA
p. 406.549.3337 ext. 203
p. 1.888.5WEBPRO ext. 203
e. [EMAIL PROTECTED]
url. www.webpro-usa.com
- Original Message -
From: "Brian
You have to double quote instead of single quote
- Original Message -
From: "Brian Thornton" [EMAIL PROTECTED]
To: "CF-Talk" [EMAIL PROTECTED]
Sent: Tuesday, March 27, 2001 12:22 PM
Subject: CFHTMLHEAD
CFHTMLHEAD TEXT="
script
!-- Hide the script from old browsers --
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Something like this:
html
head
blahblah
/head
body
blahblah
cfhtmlhead text="titleWhatever/title"
/body
/html
You could potentially figure out the title for the page from a DB
query or other operation and add it into the
move javascript to header
From: "wpdd" [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Subject: cfhtmlhead
Date: Thu, 5 Oct 2000 13:39:37 -0400
Does anyone examples of good uses for this tag ?
Does anyone examples of good uses for this tag?
Sure. It's very handy for adding META tags or JavaScript function blocks to
the right part of the page.
Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
voice: (202) 797-5496
fax: (202) 797-5444
One good example. And one bad example (of side effects)
1 Good example
suppose you are writing this custom tag and you would like to have a piece
of script appear in the head/head area, just to be nice and orderly.
Well, use cfhtmlhead. You have no access to the main page positioning
I suspect that this multiple pass to the output stream is partially at
fault
of why CF cannot flush the output while it is produced, the way ASP does
it,
sending chunks of output while process is still pending. It needs the
whole
string first.
If this is the case, it'd be neat if I could
In Application.cfm I call CFHTMLHEAD to link in my style sheet.
I have a page which uses CFCONTENT and CFHEADER to write a CSV file.
The problem is that the link tag gets written to this CSV file.
Obviously I only want it written to HTML pages.
You'll have to put your CFCONTENT page in a
33 matches
Mail list logo