Re: Clear text while using File Upload in Struts2

2009-12-28 Thread Saeed Iqbal
The major thing you would want is to have the selected file uploaded to the server first before clear. Think in that direction, maybe. On Mon, Dec 28, 2009 at 9:14 PM, Rafael Taboada wrote: > u can change the event to onchange for example... code shows onclick > because > I have another button a

Re: Clear text while using File Upload in Struts2

2009-12-28 Thread Rafael Taboada
u can change the event to onchange for example... code shows onclick because I have another button above the file upload to change its style. but the main idea is to clear the value like javascript function shows On Mon, Dec 28, 2009 at 11:11 AM, vineith kaul wrote: > If I understand your questi

Re: Clear text while using File Upload in Struts2

2009-12-28 Thread vineith kaul
If I understand your question right, I think a reset button should do the job right ? something like this: Vineith On Mon, Dec 28, 2009 at 6:16 AM, Rafael Taboada wrote: > Puedes usar javascript: > > function limpiarText(){ > var idUpload=document.getElementById("idUpload"); > var frm=doc

Re: Clear text while using File Upload in Struts2

2009-12-28 Thread Rafael Taboada
Puedes usar javascript: function limpiarText(){ var idUpload=document.getElementById("idUpload"); var frm=document.getElementById("frm"); idUpload.setAttribute("value",""); frm.reset(); } On Mon, Dec 28, 2009 at 2:12 AM, Saeed Iqbal wrote: > If you have not submitted t

Re: Clear text while using File Upload in Struts2

2009-12-27 Thread Saeed Iqbal
If you have not submitted the form and you want this functionality then you are talking about ajax file upload struts doesnt provide ajax file upload but you can do that in struts using other libraries On Monday, December 28, 2009, Mageshwaran wrote: > I have not submitted the form. > I just onl

Re: Clear text while using File Upload in Struts2

2009-12-27 Thread Mageshwaran
I have not submitted the form. I just only selected the file using file dialog. It would be helpful if you give the code snippet to implement in Java Script. Magesh. Saeed Iqbal wrote: It gets submitted after post if you want to clear maybe use javascript to clear On Monday, December 28,

Re: Clear text while using File Upload in Struts2

2009-12-27 Thread Saeed Iqbal
It gets submitted after post if you want to clear maybe use javascript to clear On Monday, December 28, 2009, Mageshwaran wrote: > Hi All, >       In my jsp code i had used " size="20" onkeypress = "killEvent(event)"/>" for file upload using IFrame. > > The issue is if i select a file using fil

Clear text while using File Upload in Struts2

2009-12-27 Thread Mageshwaran
Hi All, In my jsp code i had used "label="File" size="20" onkeypress = "killEvent(event)"/>" for file upload using IFrame. The issue is if i select a file using file dialog, there is no option to clear the selected text. Can any one help me how to clear the uploaded file path text? T