If you are using a version of ColdFusion that supports the Application.CFC and can make use of this feature in your site, you can use the Application.cfc onRequest method for this type of work.
There are a lot a ramifications with this, especially if you also use templates in this site remotely such as web service for flash remoting. But with careful planing both these functions can be accommodated. When you use the onRequest method, it returns all the generated content as an argument to the function which can then be modified with string manipulations to add something like you want. I.E. something like replace(arguments.targetPage,"<body>",<body><script....>","one"). Check the documentation for the full details on how you implement an onRequest method. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;160198600;22374440;w Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:302052 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

