Pure ASP Upload 3 Support Product Page
This topic was archived
Required File and Spry Validation
Asked 16 years ago
1
has this question
16 years ago 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 16 years ago
16 years ago 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
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 16 years ago
16 years ago 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?
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 16 years ago
16 years ago 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
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 16 years ago
16 years ago 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?
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 16 years ago
16 years ago 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
-----------------------------------
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 16 years ago
16 years ago 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.
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 16 years ago
16 years ago 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
-----------------------------------
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 16 years ago
16 years ago 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
-----------------------------------
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 16 years ago
16 years ago Kevin Dunbar replied:
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...