PDA

View Full Version : Lznode.getAttribute() work fine ?


Ag_Smith
10-04-2007, 12:41 PM
<class name="scheda" height="200" width="680" extends="view">
<handler name="oninit">
Debug.write(this.getAttribute(height));
</handler>
</class>


hy I have a problem with this code in laszlo debugger I don't obtain the height of class but i obtain "undefined"

the same problem with this code

<class name="scheda" height="200" width="680" oninit="Debug.write(this.getAttribute(height));" extends="view">
</class>


p.s. I use openlaszlo server 4.0.5

vernid
10-04-2007, 12:54 PM
Please quote the attribute name 'height'.

as Such

<class name="scheda" height="200" width="680" extends="view">
<handler name="oninit">
Debug.write(this.getAttribute('height'));
</handler>
</class>

Ag_Smith
10-05-2007, 04:27 AM
Please quote the attribute name 'height'.

as Such

<class name="scheda" height="200" width="680" extends="view">
<handler name="oninit">
Debug.write(this.getAttribute('height'));
</handler>
</class>

very thanks now work