Why could not you fake 'delete' button as image link? This way form will not be submitted. Or use button and JScript to submit another (hidden) form programmatically.
--- Ron Piterman <[EMAIL PROTECTED]> wrote: > I am not sure how others approach this issue. > Each file which is uploaded is kept in the server as > temporary upload. > in the form I display *either* the upload, or, if > already uploaded - a > preview (of an image) or just the file name the user > submitted, with an > option to remove this image. > If the user clicks "remove" the form get submitted, > and he gets the > upload input again. > Hope that helps, > Ron > PS - note that if the user choose a file, then the > browser sends it on > submit. When working on developement env, this all > might happend quit > fast, but already when submitting small files the > (home) user normally > has to wait quite some time, so resubmitting of > files is not going to > make you very popular... > > > > ����� Anjali Abraham: > > Well I meant that, Form refresh happens when we > get any server side > > validation error. > > And as I have in .html page, code like this: > > <td> <input type="file" jwcid="upload" > name="upload"/></td> > > And I had written a server side validation to > this, and when I get the > > error message getting displayed on the page, the > page gets refreshed and the > > file I had selected in this "file" type field gets > vanished. So if I can > > avoid the refresh of the page when I get any > server side validation, I can > > retain that file selected in that field.... > > That�s the reason I asked whether we can avoid > form refresh when I get any > > server side error message on that page... > > > > Hope I am clear this time... > > Thanks in advance, > > > > > > Regards, > > Anjali > > > > -----Original Message----- > > From: news [mailto:[EMAIL PROTECTED] On Behalf > Of Ron Piterman > > Sent: Friday, October 21, 2005 3:44 PM > > To: [email protected] > > Subject: Re: Need help to avoid refresh if any > server side validation fails > > > > could you explain what you mean by "refresh" ? > > > > ����� Anjali Abraham: > > > >>Hi All, > >> I need help on how to avoid Refresh on > the page whenever there > >>is an error displayed while returning from server > side validation. > >> > >>Please respond with solutions, > >>Thanks in advance, > >> > >>Regards, > >>Anjali > >> > >> > > > > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: > [EMAIL PROTECTED] > > For additional commands, e-mail: > [EMAIL PROTECTED] > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: > [EMAIL PROTECTED] > > For additional commands, e-mail: > [EMAIL PROTECTED] > > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: > [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
