Follow

JavaScript and jQuery issues after activation

By far the biggest problem people have when activating the plugin is JavaScript related conflicts.
WordPress has built in features to ensure that these conflict do not happen, unfortunately many theme and plugin developers do not take advantage of these. A conflict arises when WordPress Simple Survey is installed along side a sub-par theme or plugin. WordPress Simple Survey uses the correct JavaScript library queuing methods built into WordPress, but an installed theme or plugin does not.

See http://codex.wordpress.org/Function_Reference/wp_enqueue_script for a full explanation of the API.

As a result, many sites have multiple versions of a particular JavaScript library loaded at the same time, in particular jQuery. Check your HTML page source and look for multiple “jquery.js” or “jquery{-version}.js”. When this happens, special JavaScript functions break. Effectively, this punishes plugin developers who write code correctly, and leaves you with a headache.

Feel free to post replies if you have other JavaScript related questions or you feel that this is not your issue.
Have more questions? Submit a request

Comments

  • Avatar
    Miriam Richardson

    My survey is loading a single page with a list of questions, not as designed.

    All I can gather from this page is that it is the fault of another plugin. So I assume I must disable other plugins until this one works, then I will know what is conflicting.

    But my page has 2 empty javascript files provided by Wordpress Simple survey.
    jquery.wp-simple-survey.js and wpss.js
    Both these files are empty of content.

    So what do I do? Disable other plugins one and a time, hoping that l the wpss javascript files will get filled and then do their job?

    Cheers
    Miriam

    Cheers
    Miriam

  • Avatar
    Miriam Richardson

    Well, sorry, all my fault. Somehow I managed to install the plugin in loose inside the plugins folder, instead of inside its own folder. Now the files are all where they belong it is working!

Powered by Zendesk