[Laszlo-user] curiosity question about <method> syntax

P T Withington ptw at pobox.com
Mon Oct 15 10:24:07 PDT 2007


The handler tag was introduced in 3.2:

http://wiki.openlaszlo.org/Event_and_handler_tags

Since the syntax you describe is not described there, it seems like  
it must have never been documented.  Clearly it must have worked at  
one time, but you'd have to do archaeology on the compiler and  
runtime to figure out when.  This is one of the reasons we introduced  
the new syntax though -- the old syntax was confusing and overloaded  
method too much, IMO.

On 2007-10-15, at 12:57 EDT, Elliot Winard wrote:

> I love archive.org - http://web.archive.org/web/20041123040300/ 
> www.laszlosystems.com/lps-2.2/docs/reference/html-index.html
>
> It looks like <method method="foo"/> was not a valid syntax in  
> 2.2.  Was it ever?
> -e
>
> Elliot Winard wrote:
>> I'm looking at code written earlier this year that uses the  
>> @method attribute on a <method> tag and wonder how the code ever  
>> could have worked.
>>
>> The code looked something like this -
>>    <view>
>>        <method event="oninit" method="doSomething" />
>>        <method name="doSomething">
>>           // do something here
>>        </method>
>>    </view>
>>
>> It doesn't work in wafflecone because it is invalid syntax for a  
>> <method> tag.
>> The fix was easy - replacing the oninit event method with
>>    <handler name="oninit" method="doSomething" />
>>
>> So, out of curiousity - when was this syntax valid?  Is there a  
>> way to go back through old documentation other than downloading  
>> and installing older builds at [0]?
>>
>> Thx,
>> -e
>>
>> [0]  http://www.openlaszlo.org/archive



More information about the Laszlo-user mailing list