3 posts • Page 1 of 1
My problem: I have 2 forms that use ajax - login and register. Everything works, if the user makes an error - an error popup shows. So my question is: is there a way to determine if the ajax request succeeded or something broke or maybe the user disabled his browsers js? If something like that occurs to submit the form the traditional way without ajax requests? Is there a way to check this?
- New php-forum User
- Posts: 236
- Joined: Sat Apr 14, 2012 11:57 am
- Location: Vilnius, Lithuania
As for AJAX (with jQuery). To check what happened with connection, you could use complete(), error() or success() functions.
Code: Select all
<noscript> <META HTTP-EQUIV="Refresh" CONTENT="0;URL=http://www.some.org/form_without_JS.html"> </noscript>