"What if? Why not? Challenge the Convention! Let's do some incredible things!"  More Quotes

Welcome to Aspire Knowledge Central (AKC)

   Home   Public Library   Author Content

Choose a data format:   classic-xml   object-xml   embedded-xml   text   excel

laszlo: Example of declaring attributes

Click here to provide feedback or comments at the bottom of this page

<class name="myclass">
  <attribute name="foo" value="1"/>
  <attribute name="thing" value="foo + 4" when="always"/>
  <attribute name="bar"/>

  <method event="oninit">
    this.bar= true; 
    this.foo = 4;            
  </method>

  <method name="dothis">
    if (bar) {
      this.setAttribute("foo", 6);
    }                
  </method>
</class>

Subject (Don't use any html tags)

Description (Use html tags: h3, h4, p, pre, a, etc.)

Name Email