Thanks Ian.. sas
-- Scott Stewart ColdFusion Developer SSTWebworks 7241 Jillspring Ct. Springfield, Va. 22152 (703) 220-2835 http://www.sstwebworks.com -----Original Message----- From: Ian Skinner [mailto:[EMAIL PROTECTED] Sent: Friday, April 20, 2007 12:22 PM To: CF-Community Subject: RE: Javascript Question If I set a var in the first function, can I use it in the second function? If you define it outside of either function. var foobar; //Global variable available to all functions. function setVar() { foobar="see ma"; } function readVar() { alert(foobar); } ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Deploy Web Applications Quickly across the enterprise with ColdFusion MX7 & Flex 2 Free Trial http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJU Archive: http://www.houseoffusion.com/groups/CF-Community/message.cfm/messageid:233115 Subscription: http://www.houseoffusion.com/groups/CF-Community/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.5
