>Can you just mark it as required?

It's not the validation part I have problem with. I want to prevent the
UploadProgressBar from showing up when the field is blank and show a
javascript alert in that case.  There is no need to submit to the server.

The UploadProgressBar installs an 'onsubmit' event handler to show itself.
It's installed by adding a AttributeModifier to the form. Is there any way I
can put stuff *in front* of its javascript?  So I can have something like
this:

"if (field.value == null || field.value==""){alert("You must choose a file
to upload");return false;}[the rest of UploadProgressBar stuff]"



On Fri, May 2, 2008 at 3:19 AM, James Carman <[EMAIL PROTECTED]>
wrote:

> Can you just mark it as required?
>
> On Fri, May 2, 2008 at 2:15 AM, Matthew Young <[EMAIL PROTECTED]> wrote:
> > Instead of submit, pop up a dialog telling the user to choose a file to
> >  upload?  As is now, the UploadProgressBar show up, form submit ,
> >  getFileUpload returns null and error handling happens on the server.
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

Reply via email to