This is Interesting: Free Magazines for Graphics designers and webmasters
Home > Archive > Mozilla XML > October 2005 > Decorating XForm textarea
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Decorating XForm textarea
|
|
| Adam FLinton 2005-10-18, 6:25 am |
| 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
| |
| Allan Beaufour 2005-10-19, 6:25 am |
| Tuesday 18 October 2005 10:51 skrev Adam FLinton:
> The XForm textarea has no properties (at least in styling terms) which
> is fine per se (e.g. height, width etc.)
No, we haven't really looked much on styling yet, I'll give you that.
> 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.
I'm not sure I'm following you. Please create a bug with a test form, and
describe the problem and the expected results.
> 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.
Well, xforms:textarea and html:textarea are not equivalent. The rich text
editors etc. that you want to use are made for html:textarea. I surely would
like to see them work for xforms too, but when I look at the buglist it
suddenly does not seem that important :-)
I would like to help in facilitating it, but only with limited time and
resources. I'm sure we can "hack" something together that works in Firefox,
but cross-processor will be a bit harder. Though, we might be able to use the
custom control interface (which should help doing cross-processor stuff) to
get it working on multiple processors. I'm currently refining it to allow
that: https://bugzilla.mozilla.org/show_bug.cgi?id=306764
--
Allan Beaufour
Linux Software Engineer
Novell, Inc.
Software for the Open Enterprise
www.novell.com/open
| |
| Allan Beaufour 2005-10-21, 7:21 am |
| Wednesday 19 October 2005 10:41 skrev Allan Beaufour:
> Tuesday 18 October 2005 10:51 skrev Adam FLinton:
>
> I'm not sure I'm following you. Please create a bug with a test form, and
> describe the problem and the expected results.
This is it, right?
https://bugzilla.mozilla.org/show_bug.cgi?id=313244
BTW: You sent me a private email... it's hard to answer, when you send with a
fake (spam-protected) email adress...
--
Allan Beaufour
Linux Software Engineer
Novell, Inc.
Software for the Open Enterprise
www.novell.com/open
| |
| Adam FLinton 2005-10-21, 6:38 pm |
| Allan Beaufour wrote:
> Wednesday 19 October 2005 10:41 skrev Allan Beaufour:
>
>
>
> This is it, right?
> https://bugzilla.mozilla.org/show_bug.cgi?id=313244
>
> BTW: You sent me a private email... it's hard to answer, when you send with a
> fake (spam-protected) email adress...
>
I'm sorry about that. I should have sent it from my work address.
I can not tell wrt the bugzilla ref as I am blocked from the bugzilla
site here at work for some reason.
Adam
| |
|
|
|
| | Copyright 2003 - 2008 forum4designers.com Software forum Computer Hardware reviews |
|