PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

JS/Ajax Conflict with SimpleMap Plugin

  1. I was about to post that I couldn't edit fields because nothing happened when I clicked the 'edit' link. After de and re - activating plugins it turns out my SimpleMap plugin is creating a conflict. I'll be modifying that plugin and removing it from admin entirely, so my problem will be solved but I figured I'd notify both authors. The author can be found at

    Posted 10 years ago on Tuesday December 29, 2009 | Permalink
  2. Thanks! We will take a look. It's most like an issue they will need to resolve. It's best not to output any javascript in the admin unless it's required and SimpleMap javascript isn't required on any of the Gravity Forms pages so they shouldn't be outputting their JS on those pages.

    Posted 10 years ago on Tuesday December 29, 2009 | Permalink
  3. Oddly enough I was able to install the latest version of SimpleMap and have it run fine with Gravity Forms. I was able to edit fields, etc. But I do see a lot of SimpleMap related javascript being output on every Admin page... which could be causing a problem with your site's configuration and plugin combinations.

    It's a best practice to only output Javascript on the page when it's necessary, unfortunately a lot of plugins output their Javascript in the admin all the time instead of selectively doing so. This is the source of most conflicts, which is a shame as it is usually avoidable if you create your plugin the right way.

    Posted 10 years ago on Tuesday December 29, 2009 | Permalink
  4. Is there a relatively simple way to limit there code on admin pages or even add a conditional to it so it doesn't interfere with others?

    I'll try to find the conflict, but what variable names, etc. should I be looking for?

    The conflict might be that I'm running WPMU and trunk.

    Posted 10 years ago on Thursday December 31, 2009 | Permalink
  5. Yes, there is a way to use a conditional and only display things such as javascript only on necessary pages. Here is an article on Javascript best practices and WordPress:

    Check out the section on only loading Javascript when necessary.

    Posted 10 years ago on Friday January 1, 2010 | Permalink