title: JavaScript not executing on external domain
body: <p>I have a wordpress site that we have just launched and I am trying to embed some ads into it from a joomla site we have setup as an ad manager.</p>
  
  <p>The ad manager provides a script with which to embed an advertising zone. I've used this a lot in the past and it always just worked. Trying to get the script to work on this new server isn't playing ball.</p>
  
  <p>I made the following <code>test.php</code> file and uploaded it to both the ad server and the wordpress site. If I load it on the ad server it pulls the ad, if I open it on the wordpress server the script doesn't seem to execute. I also tried using the jquery function <code>getScript</code>, this worked on the ad server but not the wordpress one.</p>
  
  <pre><code>&lt;!doctype html&gt;
  &lt;html&gt;
  &lt;head&gt;&lt;/head&gt;
  &lt;body&gt;
    &lt;script type="text/javascript" language="javascript" src="http://ads.childmags.com.au/index.php?option=com_adagency&amp;controller=adagencyAds&amp;task=remote_ad&amp;tmpl=component&amp;format=raw&amp;zid=103"&gt;&lt;/script&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  
  
  &lt;!doctype html&gt;
  &lt;html&gt;
  &lt;head&gt;
    &lt;script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"&gt;&lt;/script&gt;
  &lt;/head&gt;
  &lt;body&gt;
    &lt;script&gt;$.getScript("http://ads.childmags.com.au/index.php?option=com_adagency&amp;controller=adagencyAds&amp;task=remote_ad&amp;tmpl=component&amp;format=raw&amp;zid=103")&lt;/script&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>Is it likely to be the wordpress server config that needs changing? Is there anyway to get around this?</p>