Run javascript ad script at runtime
<p>How can I insert a third-party ad script (javascript) into an empty div using jquery/javascript.
The issue is I get the ad script via ajax.</p>

<pre><code>&lt;!-- begin ad tag (tile=1.....) --&gt;
&lt;script language="javascript"&gt;&lt;!--
document.write('&lt;scr'+'ipt language="javascript1.1" src="http://adserver.adtechus.com/addyn/3.0/5361.1/2130212/0/4417/ADTECH;loc=100;target=_blank;key=3104;grp=[group];misc='+new Date().getTime()+'"&gt;&lt;/scri'+'pt&gt;');
//--&gt;
&lt;/script&gt;&lt;noscript&gt;&lt;a href="http://adserver.adtechus.com/adlink/3.0/5361.1/2130212/0/4417/ADTECH;loc=300;key=3104;grp=[group]" target="_blank"&gt;&lt;img src="http://adserver.adtechus.com/adserv/3.0/5361.1/2130212/0/4417/ADTECH;loc=300;key=3104;grp=[group]" border="0" width="670" height="200"&gt;&lt;/a&gt;&lt;/noscript&gt;
&lt;!-- End of JavaScript Tag --&gt;
</code></pre>

<p>The issue is the page load that when I attempt to load it into the empty div (inline_ad_one):
inlinead_1_code is a variable holding the ad data.</p>

<pre><code>$("#inline_ad_one").html(inlinead_1_code);
</code></pre>

<p>it loads the page them jumps to a new page containing only the served ad.
How can I get it to load into the empty div?</p>
