This site uses cookies. By continuing, your consent is assumed. Learn more

119.8fm shares

Validating a form using javascript with wordpress

opinion
Wordpress comes with jQuery so...

I propose that WordPress adds a simple, yet effective Javascript validation to comment forms. When a user clicks submit on an empty comment, it brings them directly to a WordPress error page that is empty with a small line of text. An extendable API for javascript form validation in general would be a great leap forward in the world of WordPress because it betters the front-end user experience. Many times we come to same problem which we faced so many times.

Use Wordpress hooks to do...

But still when web developer comes in sitution of checking forms with simple javascript. He started looking into some solutions. Some people try to use the some third party JS library like Mootools, Jquery, lightbox, Prototype and etc….

I recomend not to use these JS library because these library will take some brandwidth of your website. Most of the code these JS library is useless or un useful to your website. Still you are adding these JS library to your website.

DjamesAllen the plugin has not been updated for over 2 years and I don't think it is even compatible with the latest version of WordPress.

The Basic Concept

DjamesAllen Yes we have a plugin, however too much plugin is not a good idea for the safety of our websites WordPress. Your safety is not measured in the quantity of plugins but their quality.

Just install and WordPress registration...

Also a plugin is native integration: Use the plugin, see if it works. If more people need this, it may get added.

That's how it works here: RSS feed for this topic. Ideas Register Log In.

Use Wordpress hooks to do...

I'm just tired of seeing the same old error page on WordPress sites ;D. Some people try to use the some third party JS library like Mootools, Jquery, lightbox, Prototype and etc… I recomend not to use these JS library because these library will take some brandwidth of your website.

You've got a plugin for this problem. His name is comment validation.

News feed