03/24/2015 at 11:59 am
#324354
Keymaster
@ Chris
That is because the scroll to top occurs before the form data is sent to the server. So, essentially you’re redirecting the user before they are added. You should add the redirect to the ajaxSuccess callback. And only in the success cases which are 1,2 and 3. I would suggest add the redirect as a callback in the fadeIn functions in cases 1 and 2. And in case 3, the redirect should be a callback added to the html function. The reason is so the redirect occurs after the message is shown to the user. If they are not added as a callback the user will be redirected before the fade in effect finishes so they would never see the success messages.
Hope that helps!
