> if (yourcondition is met) {
> alertmessage = '<script language="Javascript">';
> alertmessage = alertmessage&chr(10)&'alert("Your alert here")';
> alertmessage = alertmessage&chr(10)&'</script>';
> }
> Then outside your cfscript do this :
> <cfif IsDefined("alertmessage")>
> <cfhtmlhead text="#alertmessage#">
> </cfif>
Have you had luck with <cfhtmlhead> ?
I tried it once ( thinking it would be better to maintain the structure of
the html document ) and wasn't able to get it to output anything... I mean,
I use <cfsavecontent> around a <script> block and then I output
#htmleditformat(myscript)# and saw the results, but the <cfhtmlhead> tag
immediately next to that output placed absolutely zilch in the header of my
document... Is this common? Did I do something wrong or did I just get a
random hoze?
S. Isaac Dealey
Certified Advanced ColdFusion 5 Developer
www.turnkey.to
954-776-0046
______________________________________________________________________
Signup for the Fusion Authority news alert and keep up with the latest news in
ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists