One option I've used in the past is to generate the validation JavaScript at 
the end of my template, so that I've already captured whatever had to be 
generated dynamically.  You can wrap the whole JS in a cfsavecontent block and 
then append it to the HEAD of the HTML using cfhtmlhead.

<cfsavecontent variable="js">
<script type="text/javascript">
function formValidate() {
.... whatever your validation is ...
}
</cfsavecontent>
<cfhtmlhead text="#js#" />



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:316836
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to