Kodjo Ackah writes: > Charlie What was your reply? >
my reply (third time in two day) :) was call the function from within the conditional...NOT using cflocation <cfif isDefined('foo')> <script language="JavaScript"> myFunction('blah'); </script> </cfif> so you have myFuntion() defined in your <head>, and you call it (passing it the appropriate argument) from within the <cfif> block. charlie > Kodjo ackah > Principal Consultant > concrete-media.com > > > > ______________________________________________________________________ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists