web form
The <baseform> tag allows you to create a web
form. The data represented by components that are enclosed in the
form tag can be sent to the server using the <submit>
tag. Each form component, such as <checkbox>,
<combobox> or <radiogroup> must have
a name. The data is submitted as name-value pairs, using the name and
value of the component.
baseform provides no layout for its
contents. If you want a simple automatic form layout use the
<form> tag.
<form> and <submit>
<checkbox>, <radiogroup>, <combobox>, <button>, <edittext>, and <list>
| Attributes | |||||
| Name | Usage | Type (Tag) | Type (JS) | Default | Category |
| changed | Tag & JS | expression | any | false | setter |
|
Boolean to determine whether the baseformitem was changed. Default is false. |
|||||
|
|
|||||
| formdata | Tag & JS | expression | any | setter | |
|
Holds a reference to each datacomponent contained within the form. |
|||||
|
|
|||||
class, classroot, cloneManager, datapath, id, ignoreAttribute, ignoreplacement, immediateparent, initstage, name, nodeLevel, onconstruct, oninit, parent, placement, subnodes
aaactive, aadescription, aaname, aasilent, aatabindex, align, bgcolor, clickable, clickregion, clip, cursor, defaultplacement, fgcolor, focusable, focustrap, font, fontsize, fontstyle, frame, framesloadratio, hassetheight, hassetwidth, height, layout, loadratio, mask, onblur, onclick, ondata, ondblclick, onfocus, onkeydown, onkeyup, onmousedown, onmouseout, onmouseover, onmouseup, onselect, opacity, options, pixellock, play, resource, resourceheight, resourcewidth, rotation, selectiontype, showhandcursor, source, stretches, subviews, totalframes, unstretchedheight, unstretchedwidth, valign, visible, width, x, xoffset, y, yoffset
| addFormItem() | ||
| baseform.addFormItem(item) | ||
| Parameters | ||
| Name | Type | Desc |
| item | None | |
|
|
||
| commit() | ||
| baseform.commit() | ||
|
Commits baseform's baseformitem values and sets baseform and baseformitems to changed=false. |
||
|
|
| rollback() | ||
| baseform.rollback() | ||
|
Rollback baseform's baseformitem values and sets baseform and baseformitems to changed=false. |
||
|
|
| setChanged() | ||
| baseform.setChanged(changed, skipformdata) | ||
|
Setter to to set baseform's status to changed. Baseformitems should set baseform's changed to true when its values change and set baseform's changed to false when its values are rollback or committed. |
||
| Parameters | ||
| Name | Type | Desc |
| changed | Boolean | true if changed, else false. |
| skipformdata | Boolean | if true, set formdata changed values, else don't. |
|
|
||
animate, applyConstraint, applyData, childOf, completeInstantiation, createChildren, dataBindAttribute, destroy, determinePlacement, getAttribute, getOption, getUID, lookupSourceLocator, searchImmediateSubnodes, searchSubnodes, setAttribute, setDatapath, setID, setName, setOption
addProxyPolicy, addSubview, bringToFront, construct, containsPt, getAttributeRelative, getBounds, getColor, getColorTransform, getContextMenu, getCurrentTime, getDepthList, getHeight, getID3, getMouse, getPan, getTotalTime, getVolume, getWidth, init, measureHeight, measureWidth, play, releaseLayouts, removeProxyPolicy, searchParents, searchSubviews, seek, sendBehind, sendInFrontOf, sendToBack, setAAActive, setAADescription, setAAName, setAASilent, setAATabIndex, setAlign, setAttributeRelative, setBGColor, setClickable, setColor, setColorTransform, setContextMenu, setCursor, setHeight, setLayout, setOpacity, setPan, setPlay, setResource, setResourceNumber, setRotation, setShowHandCursor, setSource, setValign, setVisible, setVolume, setWidth, setX, setY, shouldYieldFocus, stop, stretchResource, unload, updateResourceSize
| Events | |
| Name | Description |
| onchanged | None |
onaddsubresource, onaddsubview, onblur, onclick, ondblclick, onerror, onfocus, onframe, onheight, onlastframe, onload, onmousedown, onmousedragin, onmousedragout, onmouseout, onmouseover, onmouseup, onmouseupoutside, onopacity, onplay, onremovesubview, onstop, ontimeout, onwidth, onx, ony
Copyright © 2002-2007 Laszlo Systems, Inc. All Rights Reserved. Unauthorized use, duplication or distribution is strictly prohibited. This is the proprietary information of Laszlo Systems, Inc. Use is subject to license terms.