Forum
16:41
09/11/2009
Perhaps I am wrong but when I create an input field for uploading files then the "browse" button is before the input field.
Usually we have label -> field but in this case we have label -> button -> field
To the UI point of view, that seems illogic and inesthetic.
What is your point of view ?
Thank's
16:24
Moderators
30/10/2007
Hello,
Not sure what you try to do and where.
You know the answer - without test case (or source ) we can not help
Regards
For professional UI suites for Java Script and PHP visit us at our commercial products site - guriddo.net - by the very same guys that created jqGrid.
18:03
09/11/2009
Dear Tony,
Look at this pic:
No need of test case to understand: why the "parcourir" button is before the selected file field ?
onInitializeForm: function (formid)
{
var cppass = '<tr id="tr_fileupload" class="FormData" rowpos="5">';
cppass += '<td class="CaptionTD ui-widget-content">Photo</td>';
cppass += '<td class="DataTD ui-widget-content" style="white-space: pre;">';
cppass += ' <input id="fileupload" class="FormElement" type="file" name="fileupload" size="20"/>';
cppass += '</td></tr>';
$(cppass).insertAfter("#tr_photo",formid);
$(formid).attr('enctype','multipart/form-data');
...
[Image Can Not Be Found]
12:25
17/02/2009
Hi Phicarre,
It's not due to Jgqrid (and it cannot handle it). Because it's the property of html <input type"file"…> : it will display always the button "browse" before the field and you can't change that if you use <input type"file"…>.
If you want to customize it (for example : reverse field/button order display) you can use this jquery plugin here:
there are some demo samples online.
Best regards
Phil
Most Users Ever Online: 715
Currently Online:
34 Guest(s)
Currently Browsing this Page:
1 Guest(s)
Top Posters:
OlegK: 1255
markw65: 179
kobruleht: 144
phicarre: 132
YamilBracho: 124
Renso: 118
Member Stats:
Guest Posters: 447
Members: 11373
Moderators: 2
Admins: 1
Forum Stats:
Groups: 1
Forums: 8
Topics: 10592
Posts: 31289
Newest Members:
, razia, Prankie, psky, praveen neelam, greg.valainis@pa-tech.comModerators: tony: 7721, Rumen[Trirand]: 81
Administrators: admin: 66