Pure ASP Upload 3 Support Product Page

This topic was archived

Required File and Spry Validation

Asked 02 Jul 2008 18:34:47
1
has this question
02 Jul 2008 18:34:47 Jason Sweet posted:
How do I get these two things working together? Adding the Pure ASP Upload 3 server behavior breaks the Spry validation.

I would like the Spry input/field validation to precede the Required File validation if possible?

You can see my form here

www.sbwebhost.com/reinoso/offers/index.asp

I don't have the Upload server behavior in place in this example but you can see I have the File field ready to go. Try submitting the form and you can see the Spry validation in effect.

A rapid reply would be greatly appreciated.

Thanks.

Replies

Replied 03 Jul 2008 11:49:57
03 Jul 2008 11:49:57 Kiril Iliev replied:
Hi Jason,

You can do that by validating your input field on Blur and/or on Change. That way when the site visitor passes through the field, or submit the form, first the Spry validation will be executed, then the PAU3 validation.

Regards,


DMX Zones Support Team
Replied 03 Jul 2008 14:38:49
03 Jul 2008 14:38:49 Jason Sweet replied:
Thanks for the reply.

I'm doing just that for input fields but for checkbox and select validations, this isn't possible. For these, the state is checked when the form is submitted.

The bottom line is that after applying the Upload server behavior, my Spry validations fail (and the Required File validation doesn't work).

Any other ideas?
Replied 03 Jul 2008 15:08:20
03 Jul 2008 15:08:20 Kiril Iliev replied:
Hi Jayson,

We have tested Spry validation with PAU3 validation with your specific case, and as it seems Spry validation (checkbox, Textfield, and list) is working as intended under Dreamweaver CS3.

Could please tell us which version of Dreamwever you are using?

Regards,


DMX Zones Support Team
Replied 03 Jul 2008 15:39:57
03 Jul 2008 15:39:57 Jason Sweet replied:
Thanks for testing this.

I am using CS3.

What am I doing wrong?

Here's my form with the ASP Upload 3 server behavior applied:

www.sbwebhost.com/reinoso/offers/

If you just click submit, the PAU3 validation does work (File Required) but if you then attach a PDF and click Submit, it tries to upload the form and the Spry validation is never performed (you'll see an error message because a date field is improperly formatted due to the lack of validation).

Do I need to change some order of the code?

Replied 03 Jul 2008 16:35:13
03 Jul 2008 16:35:13 Miroslav Zografski replied:
Hi Jason,

You have some errors in your javascript for date chooser. Please, repare them and afterwards test agai.
If you are in a hurry, i think you can have upload separate in a div and in a diferent form.

Regards,

M.Zografski

-----------------------------------
DMXZone.com Support Team
-----------------------------------
Replied 03 Jul 2008 17:23:54
03 Jul 2008 17:23:54 Jason Sweet replied:
Miroslav,

Thanks for your help here.

I removed the data chooser entirely but it didn't resolve the problem.

If I upload a PDF, the Spry validation never occurs.

As for the separate DIV and form, I'm not sure what you mean.
Replied 04 Jul 2008 10:06:57
04 Jul 2008 10:06:57 Miroslav Zografski replied:
Hi Jason,

I mean that you can separate the file upload field in a new form from where to be submited,
and to maintain the desing you can have that new form placed in a div.

Regards,

M.Zografski

-----------------------------------
DMXZone.com Support Team
-----------------------------------
Replied 04 Jul 2008 10:10:17
04 Jul 2008 10:10:17 Miroslav Zografski replied:
Hi again,

I figured out a new resolve similar to previouse, but with more efect visualy.
You can have a Adv. ToolTip attached with file upload form witch can be on different page.

Regards,

M.Zografski

-----------------------------------
DMXZone.com Support Team
-----------------------------------
Replied 21 Apr 2009 12:24:21
21 Apr 2009 12:24:21 Kevin Dunbar replied:
QuoteHow do I get these two things working together? Adding the Pure ASP Upload 3 server behavior breaks the Spry validation.

I would like the Spry input/field validation to precede the Required File validation if possible?

You can see my form here

www.sbwebhost.com/reinoso/offers/index.asp

I don't have the Upload server behavior in place in this example but you can see I have the File field ready to go. Try submitting the form and you can see the Spry validation in effect.

A rapid reply would be greatly appreciated.

Thanks.


Remove the onSubmit="<%=pau.submitCode()%>;return document.MM_returnValue" on the form.

Spry uses it's own onSubmit function. Having this one there will break Spry...

Reply to this topic