We do ajax the way we are supposed to do it in joomla. Our url goes to
index.php?options...&format=raw
The plugin should only execute when the format of the request is html. And it should do absolutely nothing when you have an ajax request.
You see the first 4 line?
if (JFactory::getApplication()->isAdmin())
{
return;
}
this tells the plugin to do nothing when in the backend. The author of this plugin should also add few lines for a request with format=raw (fomat=ajax, format=json, format=xml etc)
Kind regards,
Daniel