Decorating XForm textarea
Adam FLinton <[email protected]>
| Newsgroups | gmane.comp.mozilla.devel.xml |
|---|---|
| Organization | Another Netscape Collabra Server User |
| Message-ID | <[email protected]> |
Dear All,
The XForm textarea has no properties (at least in styling terms) which
is fine per se (e.g. height, width etc.)
However an implementation should be able to wrap those properties around
the xform element as otherwise lots of things go to pieces. For example
most JavaScript textarea editors will fail or have to be doctored as
they get back null from requesting the width/height etc of this "textarea".
It also messes up tables containing textareas as while you can have some
css such as:
textarea
{
width: 100%;
}
that will only work on the assumption there is some textarea.width to set.
As a result if doing a repeat in XForms to populate a table, the edges
of the table snake down the page & the textarea assumes the default
(usually fairly small) size unless it is filled by a string which has a
greater length in which case it is that length.
Implementations should implement this is a transparent to the Xform
designer way.
i.e. if the Xform plugin has loaded the XML/XHTML & has then delivered
the "XHTML" to the next stage (e.g. JavaScript scripts) then the XHTML
should be capable of holding std XHTML properties from that stage on.
e.g. as far as any Javascript or css should see there should be the std
textarea properties which they can then set/manipulate/draw information
from.
Adam