Title: IE7 javascript problem &#8211; easy fix
Last modified: August 21, 2016

---

# IE7 javascript problem – easy fix

 *  [timhengeveld](https://wordpress.org/support/users/timhengeveld/)
 * (@timhengeveld)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/ie7-javascript-problem-easy-fix/)
 * Hi,
 * In wp-ajaxify-comments.php on line 486 there is this line of code:
 * `echo '"onBeforeSubmitComment": function() {'.wpac_get_option('callbackOnBeforeSubmitComment').'},';`
 * The trailing comma gives an error in IE7 (Expected identifier, string or number),
   by removing the trailing comma, the IE7 javascript bug is fixed:
 * `echo '"onBeforeSubmitComment": function() {'.wpac_get_option('callbackOnBeforeSubmitComment').'}';`
 * The bug prevents other javascripts from working correctly on the same page.
 * Kind regards,
    Tim
 * [http://wordpress.org/plugins/wp-ajaxify-comments/](http://wordpress.org/plugins/wp-ajaxify-comments/)

Viewing 1 replies (of 1 total)

 *  [janjonas](https://wordpress.org/support/users/janjonas/)
 * (@janjonas)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/ie7-javascript-problem-easy-fix/#post-4361368)
 * Thanks for your comment. Please upgrade to the latest version 0.19.0 which should
   fix the error.
 * Best regards,
    Jan

Viewing 1 replies (of 1 total)

The topic ‘IE7 javascript problem – easy fix’ is closed to new replies.

 * ![](https://ps.w.org/wp-ajaxify-comments/assets/icon-256x256.png?rev=2962290)
 * [Ajaxify Comments - Ajax and Lazy Loading Comments](https://wordpress.org/plugins/wp-ajaxify-comments/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-ajaxify-comments/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-ajaxify-comments/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-ajaxify-comments/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-ajaxify-comments/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-ajaxify-comments/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [janjonas](https://wordpress.org/support/users/janjonas/)
 * Last activity: [12 years, 5 months ago](https://wordpress.org/support/topic/ie7-javascript-problem-easy-fix/#post-4361368)
 * Status: not resolved