only if you scope the variable outside of the two functions. e.g.

<script>

var ima_global;

function f1() {
  ima_global = true;
}

function f2() {
  alert(ima_global);
}

</script>

On 4/20/07, Scott Stewart <[EMAIL PROTECTED]> wrote:
> Hey all,
>
>
>
> I've got two javascript functions in a .js template.
>
>
>
> If I set a var in the first function, can I use it in the second function?
>
>
>
> Thanks
>
>
>
> sas
>
>
>
> --
>
> Scott Stewart
>
> ColdFusion Developer
>
>
>
> SSTWebworks
>
> 7241 Jillspring Ct.
>
> Springfield, Va. 22152
>
> (703) 220-2835
>
>
>
> http://www.sstwebworks.com
>
>
>
>
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Upgrade to Adobe ColdFusion MX7
The most significant release in over 10 years. Upgrade & see new features.
http://www.adobe.com/products/coldfusion?sdid=RVJR

Archive: 
http://www.houseoffusion.com/groups/CF-Community/message.cfm/messageid:233114
Subscription: http://www.houseoffusion.com/groups/CF-Community/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.5

Reply via email to