jQuery UI Widgets › Forums › Editors › FileUpload › Change Label buttons and problem with browser button
Tagged: File Upload, fileupload, form, jqxFileUpload, localization, localize, submit, translate
This topic contains 5 replies, has 3 voices, and was last updated by Dimitar 6 years, 6 months ago.
-
Author
-
Hi
I have this component with other jqwidgets(jxwindows, jqxPanel jxtabs) this is it works
Open windows and have jxtabs and in one of this tabs, I have jxpanel and one section I have this component, but when I push button browse send to submit (or something like that) and the entirely page loading with another address, but the dialog box for browser files is opening normaly but the page in background is reload.
And the second consult is posibility to change the label of all button (this if for translate to spanish)
sorry my english i am spanish
JorgefoI find the solution about the browser button, i remove the tags <form> and finaly is working, but i need to change the way to submit the form but i not a big deal, i hope so jajajaja
Hi Jorgefo,
- The jqxFileUpload widget should not be included in a form. It creates and submits internal forms to the url specified in the uploadUrl property when you choose to upload a specific or all selected files. For more information, please read the uploadUrl entry in the jqxFileUpload API Documentation.
- You can localize the widget by applying the localization property. Here is an example: http://jsfiddle.net/jqwidgets/ghnmp6r4/.
Best Regards,
DimitarjQWidgets team
http://www.jqwidgets.com/Thanks
I’m having the same issue with the form tags and browse button. This solution is quite strange. Removing the form tags means that a jqxfileupload can not be included in the design structure of any other form elements. Is there no work around that allows me to include a jqxfileupload with other form elements?
Hello defyent,
Unfortunately, jqxFileUpload cannot be included in a form, because, as explained in my previous reply, it has internal form(s) that allow for uploading each file individually (if necessary). The widget’s uploadUrl property is analogous to the HTML form action attribute.
A possible workaround is to bind to the click event of your form’s submit button and call the jqxFileUpload uploadAll method in the click event handler. This way, for the user, it would seem that both the form and the stand-alone jqxFileUpload are submitted at the same time.
Best Regards,
DimitarjQWidgets team
http://www.jqwidgets.com/ -
AuthorPosts
You must be logged in to reply to this topic.