gr8, Thanks. I will try it.

fmu

> From: [email protected]
> Date: Fri, 10 Jul 2009 17:23:02 -0700
> Subject: Re: validation of upload form
> To: [email protected]
> 
> only if you submit the first form via ajax and submit the second one
> via javascript returned from the submission of first form.
> 
> -igor
> 
> On Fri, Jul 10, 2009 at 5:19 PM, fm u<[email protected]> wrote:
> >
> >
> >
> > How about if I add 2 forms, one for fields and one for file upload
> >
> > and submit first form from submit of the file upload form and
> > if the validation of the first form fails, not
> > proceed with the
> >
> > second form submission which is the file upload form.
> > Is this
> > doable or so utopic?
> >
> >
> > fmu
> >
> >> From: [email protected]
> >> Date: Fri, 10 Jul 2009 16:51:18 -0700
> >> Subject: Re: validation of upload form
> >> To: [email protected]
> >>
> >> unfortunately that is now how http works. first you get all the data
> >> uploaded - including the file - then you get to process it.
> >>
> >> -igor
> >>
> >> On Fri, Jul 10, 2009 at 2:49 PM, fm u<[email protected]> wrote:
> >> >
> >> > thats one solution but I wont be able to use those fancy ajax feedback 
> >> > panel thing and
> >> > also wicket overrides the form's onsubmit with its own code.
> >> >
> >> > If possible, validating the form before file is uploeded would do the 
> >> > best?
> >> >
> >> >
> >> >
> >> >> -----Original Message-----
> >> >> From: Jeremy Thomerson [mailto:[email protected]]
> >> >> Sent: 10 July 2009 16:07
> >> >> To: [email protected]
> >> >> Subject: Re: validation of upload form
> >> >>
> >> >> Validate client-side?
> >> >>
> >> >> --
> >> >> Jeremy Thomerson
> >> >> http://www.wickettraining.com
> >> >>
> >> >>
> >> >>
> >> >>
> >> >> On Fri, Jul 10, 2009 at 9:08 AM, fm u<[email protected]> wrote:
> >> >> >
> >> >> > hi,
> >> >> >
> >> >> > I am using simple ajax file upload with UploadProgressBar.
> >> >> > I also have a required textarea in the same form.
> >> >> > But
> >> >> > when I try to upload a file without filling the required textarea,
> >> >> > the
> >> >> > file is uploaded first and then the validation error messages appear.
> >> >> >
> >> >> > What should I do to validate the form before actually uploading the 
> >> >> > file?
> >> >> >
> >> >> > Thanks,
> >> >> > fmu
> >> >> >
> >> >> > _________________________________________________________________
> >> >> > Windows LiveT Photos: it's easy to store and manage your photos 
> >> >> > online.
> >> >> See how.
> >> >> >
> >> >> http://windowslive.com/Online/Photos?ocid=TXT_TAGLM_WL_CS_PH_store_manage_07
> >> >> 2009
> >> >>
> >> >> ---------------------------------------------------------------------
> >> >> To unsubscribe, e-mail: [email protected]
> >> >> For additional commands, e-mail: [email protected]
> >> >>
> >> >
> >> > _________________________________________________________________
> >> > Lauren found her dream laptop. Find the PC that’s right for you.
> >> > http://www.microsoft.com/windows/choosepc/?ocid=ftp_val_wl_290
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: [email protected]
> >> For additional commands, e-mail: [email protected]
> >>
> >
> > _________________________________________________________________
> > Windows Live™ SkyDrive™: Get 25 GB of free online storage.
> > http://windowslive.com/online/skydrive?ocid=TXT_TAGLM_WL_SD_25GB_062009
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
> 

_________________________________________________________________
Windows Live™ Hotmail®: Spread the word when you add celeb photos to your 
e-mails. Check it out.
http://www.windowslive.com/Online/Hotmail/Campaign/QuickAdd?ocid=TXT_TAGLM_WL_QA_HM_celebrity_photos1_072009&cat=celebrity

Reply via email to