Re: Is is possible to set the width of the textbox in the upload component?
Allan Beaufour <[email protected]>
| Newsgroups | gmane.comp.mozilla.devel.xml |
|---|---|
| Message-ID | <[email protected]> |
Friday 14 October 2005 13:13 skrev Adam FLinton: > Allan Beaufour wrote: > > On Thursday October 13 2005 17:01, Adam FLinton wrote: > >>Is is possible to set the width of the textbox in the upload component? > > > > Hmm, not really. In a perfect world you should possibly be able to target > > xforms|upload::value, but we have no support for pseudoelements yet :( > > OK then...is it possible with via CSS? There are some "issues" right now, as it is done in XTF and not XBL. But you can try :) > Something like: > > <form name="form1"> <input name="XFormcontrolname" > type="file" /><input onclick="whatFile()" > value="Open File" type="button" /></form> It's hiding here: http://lxr.mozilla.org/seamonkey/source/extensions/xforms/nsXFormsUploadElement.cpp#115 So it must be: <label> <span/> <input type="file"/> </label> But we are currently changing upload: https://bugzilla.mozilla.org/show_bug.cgi?id=275453 So in the not to distant future :), it will be in XBL which should fix some of the layout issues and also make it easier to see what we actually create. -- Allan Beaufour Linux Software Engineer Novell, Inc. Software for the Open Enterprise www.novell.com/open