[Laszlo-user] changing variable values... How?

Alexander Wallace aw at rwmotloc.com
Tue Mar 25 11:19:55 PDT 2008


4.1.8.0 ... on mac, leopard, using soy latte...

I'll double check that and verify... i'm glad i was not lost, may just  
need to upgrade my version...

On Mar 24, 2008, at 1:28 PM, P T Withington wrote:

> What version are you testing against?  Your example runs fine for me  
> (with deprecation warnings):
>
> INFO @wallace.lzx#1: #canvas.getAttribute('someAttr') is deprecated.  
> Use #canvas['someAttr'] instead.
> someAttr value before an attempt to change false
> INFO @wallace.lzx#1: #canvas.getAttribute('someAttr') is deprecated.  
> Use #canvas['someAttr'] instead.
> someAttr value after attempt to change true
> lzx> Debug.versionInfo()
> URL: http://dueling-banjos.local:8080/ringding-clean/test/wallace.lzx?lzt=object&lzt=object&debug=true&lzr=dhtml&lzbacktrace=true
> Version: 4.1.x.0
> Release: RingDing
> Build: 8366 /Users/ptw/OpenLaszlo/ringding-clean
> Date: 2008-03-24T12:59:25-0400
> Target: dhtml
> Runtime: Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en-US; rv: 
> 1.8.1.12) Gecko/20080201 Firefox/2.0.0.12
> lzx>
>
> On 2008-03-24, at 14:07 EDT, Alexander Wallace wrote:
>> Hi all.. this is a really stupid question, but I can't find out why  
>> it doesn't work... I'll type some pseudo code here:
>>
>> <canvas>
>> 	<attribute name="someAttr" type="boolean" value="false" />
>> 	<method name="init">
>> 		super.init();
>> 		Debug.write("someAttr value before an attempt to change",  
>> getAttribute("someAttr"));
>> 		setAttribute("someAttr", true);
>> 		Debug.write("someAttr value after attempt to change",  
>> getAttribute("someAttr"));
>> 	</method>
>> </canvas>
>>
>> Well... No matter what combination of accessing the var I've tried,  
>> i can't change the original value... What am i doing wrong?
>>
>> Thanks!
>
>



More information about the Laszlo-user mailing list