Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Spry Validations - "thank you" message!

New Here ,
Aug 24, 2009 Aug 24, 2009

Hi friends,

I was trying to figure out the way how to add a message when all my checks are valid, i mean, after you press the submit button (if you validations are ok) then should appear a message like "Thank you! all your info has been update successfully".

I tried with JavaScript with an "alert("message");" into my SpryValidationCheckbox.js code_validation.jpg

but im not sure where to add it

all suggestions will be welcome!

TOPICS
Server side applications
735
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Aug 24, 2009 Aug 24, 2009

A thankyou message should appear after the form is successfully submitted, not after validation. So put the thank you in your server side script that is processing the form.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Aug 24, 2009 Aug 24, 2009

Thank you for your answer bregent,

Ok im going to be honest, this form have an image upload, so after submit i have an Ajax that show you "Uploading image, please wait" unfortunately is no possible to do it in the server side.

I'm just want to know, where is the last "return" into the JavaScript that let you send the information?

I will really appreciate any help!

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Aug 25, 2009 Aug 25, 2009

I only added one line -- return ray.ajax(); -- when all validation has been passed right before return come true.

code_validation.jpg

I wish I could do it with the Spry Validation too. Any ideas?.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Aug 25, 2009 Aug 25, 2009
LATEST

it works!!! 

as soon as possible i will post the solution.

best regards

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines