OLPCities/Form: Difference between revisions

From OLPC
Jump to navigation Jump to search
No edit summary
No edit summary
Line 13: Line 13:
<pre>
<pre>
(object of the Class TextArea) Normaly we have a chain of objects/propeties, because a property of the
(object of the Class TextArea) Normaly we have a chain of objects/propeties, because a property of the
Class TextArea can be "value".
Class TextBox can be "value".
By example: we can capture what was typed at a textbox with:
By example: we can capture what was typed at a textbox with:
document.form1.tb1.value
document.form1.tb1.value
Line 20: Line 20:
</pre>
</pre>


Link to the Classes:[[Document]] [[TextArea]]
Link to the Classes:[[Document]] [[TextBox]]


[[Category:OLPCities]]
[[Category:OLPCities]]

Revision as of 17:10, 26 September 2006

"Form" is a Class that is part of the DOM (Document Object Model). This "library" is referenced automaticaly by the browser of the OLPC station and you don't need to add anything in the program to use it.

We are now (sept 2006) doing tests to verify all the methods and properties of this Class that is working OK with the OLPC station. So, we have only a few elements presented here.

To create an object of the Class you will use the tag FORM defining a NAME. You need to close the tag. Something like:

<form name = form1>
...


</form>
==Properties==
<pre>
(object of the Class TextArea)  Normaly we have a chain of objects/propeties, because a property of the 
                                 Class TextBox can be  "value".
                                 By example: we can capture what was typed at a textbox  with:
                                 document.form1.tb1.value


Link to the Classes:Document TextBox