You could use
HTML <noscript> Tag to notify user to enable JavaScript. If JavaScript is not supported, only option (I think) would be to redirect user to page without JavaScript
like:
- Code: Select all
<noscript>
<META HTTP-EQUIV="Refresh" CONTENT="0;URL=http://www.some.org/form_without_JS.html">
</noscript>
As for AJAX (with jQuery). To check what happened with connection, you could use complete(), error() or success() functions.
jQuery.ajax()In case it fails, you could submit form with JavaScript.