WordPress.org

Ready to get started?Download WordPress

Forums

Acunetix WP Security
[Plugin: WP Security Scan] Js conflict with other JQuery files (2 posts)

  1. Odolyte
    Member
    Posted 3 years ago #

    Hi,

    I've noticed that wp-security-scan/js/scripts.js is sometimes in conflict with other js files. It needs to be modified for :

    jQuery.noConflict();
    function displaymessage()
    {
    alert("Hello World!");
    }

    jQuery('myForm').addEvent('submit', function(e) {
    /**
    * Prevent the submit event
    */
    new Event(e).stop();

    /**
    * This empties the log and shows the spinning indicator
    */
    var log = jQuery('log_res').empty().addClass('ajax-loading');

    /**
    * send takes care of encoding and returns the Ajax instance.
    * onComplete removes the spinner from the log.
    */
    this.send({
    update: log,
    onComplete: function() {
    log.removeClass('ajax-loading');
    }
    });
    });

    the $ may be used by other scripts.

    Hope that helps

    Odo

    http://wordpress.org/extend/plugins/wp-security-scan/

  2. Odolyte
    Member
    Posted 3 years ago #

    Ooops i was a bit quick. This doesn't work either.

    Still get the error "$ is not a function".

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic