[Xerte] Xerte3: scope of vars

Peter Huppertz peter.huppertz at baselgovernance.org
Thu Jul 1 16:56:22 BST 2010


I now put a script icon just before the canvas1 defining var foo and just set the value of foo in the eventHandler. Now it works.

On 01.07.2010, at 17:53, Julian Tenney wrote:

> They should be yes. Are you sure the event is being fired?
> 
> -----Original Message-----
> From: xerte-bounces at lists.nottingham.ac.uk
> [mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Peter
> Huppertz
> Sent: 01 July 2010 16:41
> To: Xerte discussion list
> Subject: [Xerte] Xerte3: scope of vars
> 
> I have the following tree
> 
> - canvas1
> -- viewstackicon
> --- canvas1-1
> ---- eventHandler for event "show", setting var foo = "bar";
> - canvas2
> -- eventHandler for event "show", debug(foo) // not output
> 
> I show canvas2 by clicking a button after canvas1 is loaded. The show
> event fires (tested it with debug). I thought that all vars I declare
> are somehow global in Xerte, but that is not the truth, is it?
> 
> 
> ==================================
> Peter Huppertz
> E-learning and IT Specialist
> International Centre for Asset Recovery
> Basel Institute on Governance
> Phone: +41 61 205 55 18
> Fax: +41 61 267 55 19
> 
> _______________________________________________
> Xerte mailing list
> Xerte at lists.nottingham.ac.uk
> http://lists.nottingham.ac.uk/mailman/listinfo/xerte
> _______________________________________________
> Xerte mailing list
> Xerte at lists.nottingham.ac.uk
> http://lists.nottingham.ac.uk/mailman/listinfo/xerte

==================================
Peter Huppertz
E-learning and IT Specialist
International Centre for Asset Recovery
Basel Institute on Governance
Phone: +41 61 205 55 18
Fax: +41 61 267 55 19



More information about the Xerte mailing list