Title: [Plugin: PTM AJAX Comments] Noscript Degradation?
Last modified: August 20, 2016

---

# [Plugin: PTM AJAX Comments] Noscript Degradation?

 *  [nonword](https://wordpress.org/support/users/nonword/)
 * (@nonword)
 * [14 years, 11 months ago](https://wordpress.org/support/topic/plugin-ptm-ajax-comments-noscript-degradation/)
 * I notice that the plugin uses comment_post_redirect regardless of whether the
   comment is posted via the ajax call or via the standard form (i.e. if JS is disabled
   on client). I like this plugin, but our blog needs to work for noscript users,
   so perhaps something like this?
 * js/ptm-ajax-comments.dev.js:51 Add:
    jQuery(‘#submit’).after(‘<input type=”hidden”
   name=”ptm-enabled” value=”1″ />’);
 * lib/Class.PTM_AJAXCommentsFront.php:21 Add:
    if(array_key_exists(‘ptm-enabled’,
   $_POST)) add_action( ‘comment_post_redirect’, …
 * Basically, neuter the plugin if the javascript-created “ptm-enabled” input is
   absent in the post handler. Agree?
 * [http://wordpress.org/extend/plugins/ptm-ajax-comments/](http://wordpress.org/extend/plugins/ptm-ajax-comments/)

Viewing 1 replies (of 1 total)

 *  [TacoCode](https://wordpress.org/support/users/tacocode/)
 * (@tacocode)
 * [14 years, 11 months ago](https://wordpress.org/support/topic/plugin-ptm-ajax-comments-noscript-degradation/#post-2098629)
 * Will add that to the next release. Thanks for your input!

Viewing 1 replies (of 1 total)

The topic ‘[Plugin: PTM AJAX Comments] Noscript Degradation?’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/ptm-ajax-comments.svg)
 * [PTM AJAX Comments](https://wordpress.org/plugins/ptm-ajax-comments/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/ptm-ajax-comments/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/ptm-ajax-comments/)
 * [Active Topics](https://wordpress.org/support/plugin/ptm-ajax-comments/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/ptm-ajax-comments/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/ptm-ajax-comments/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [TacoCode](https://wordpress.org/support/users/tacocode/)
 * Last activity: [14 years, 11 months ago](https://wordpress.org/support/topic/plugin-ptm-ajax-comments-noscript-degradation/#post-2098629)
 * Status: not a support question