WordPress.org

Ready to get started?Download WordPress

Forums

WP Ajax Edit Comments
[resolved] Javascript Error - solution provided... (2 posts)

  1. Trionic Labs
    Member
    Posted 2 years ago #

    After fighting with this for a bit on a site, I figured out that there is a pretty significant error in jquery.atd.textarea.js:

    r.document.write("<script type='text/javascript'>");r.document.write("(function(){var w = window; var p = w.parent; p.CSSHttpRequest.sandbox(w); w.onload = function(){p.CSSHttpRequest.callback('"+id+"');};})();");r.document.write("</script>");

    The document writes for <script> and for </script> really need to be broken or the browser interprets them to start and stop the script.

    An easy fix would be:

    r.document.write("<s"+"cript type='text/javascript'>";

    and

    r.document.write("</s"+"cript>");

    http://wordpress.org/extend/plugins/wp-ajax-edit-comments/

  2. Ronald Huereca
    Member
    Plugin Author

    Posted 1 year ago #

    I updated the After the Deadline JS, so this shouldn't be an issue anymore.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.