WordPress.org

Support

Support » Plugins and Hacks » Acunetix WP Security » [Plugin: WP Security Scan] Js conflict with other JQuery files

[Plugin: WP Security Scan] Js conflict with other JQuery files

  • 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/

Viewing 1 replies (of 1 total)
  • Ooops i was a bit quick. This doesn’t work either.

    Still get the error “$ is not a function”.

Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: WP Security Scan] Js conflict with other JQuery files’ is closed to new replies.
Skip to toolbar