This repository was archived by the owner on Oct 8, 2021. It is now read-only.
This repository was archived by the owner on Oct 8, 2021. It is now read-only.
Styling issue for file upload in form #2426
Closed
Description
In a very simple form i try to include a file upload input box but jqm fails to style it well.
See: http://spot1.spotmaster.com/dev/live/jqm_form.php for more information, thanks.
Activity
toddparker commentedon Sep 12, 2011
We don't style a file input for a number of reasons. First, some mobile platforms don't support this type of input (namely iOS). Second, it's very hard to style because of security features built into browsers. For now, we're not going to style these but feel free to add this issue to the feature request wiki page and we'll take a look post 1.0.
dipold commentedon Feb 17, 2012
Do exec $('input[type="file"]').textinput({theme: 'c'});
It is not perfect but better than nothing
kurteknikk commentedon Feb 17, 2012
Yeah it would have been better to have it styled from jquery mobile, but it works thanks :)
toddparker commentedon Feb 19, 2012
@dipold - When you apply the textinput plugin to file inputs, does it style it consistently across platforms? I assumed it wouldn't be that simple based on our experience in the past. Might look better on a few platforms though.
dipold commentedon Feb 19, 2012
Thanks @toddparker
But as I said better than nothing.
I, for example, use JQM for backend webpages to desktop access because the JQM is very simply, beautiful interface and practical (I use to webapps and mobile web pages too).
I read yours reasons but I have seen many ask for this feature then the JQM team should consider the style it in a future.
Kind regards,
toddparker commentedon Oct 19, 2012
We recently landed this feature for 1.3. See the input page for an example:
http://jquerymobile.com/test/docs/forms/textinputs/