Calling a video thru an ajax call
<p>I am trying to load a flash video when the page is scrolled to a particular position thru ajax/jquery. Everything works and I get the expected data as below:</p>

<pre>
<code>
&lt;div id="rr-brightcove" class="module vids rrmodule"&gt;&lt;h3&gt;Video&lt;/h3&gt;

 &lt;div class="module-body"&gt;

  &lt;script src="http://admin.brightcove.com/js/BrightcoveExperiences.js" type="text/javascript"&gt;&lt;/script&gt;

  &lt;object id="myaolExperience" class="BrightcoveExperience"&gt;

    &lt;param name="bgcolor" value="#FFFFFF" /&gt;

    &lt;param name="width" value="318" /&gt;

    &lt;param name="height" value="295" /&gt;

    &lt;param name="playerID" value=106573607001 /&gt;

    &lt;param name="publisherID" value=1612833736/&gt;

    &lt;param name="isVid" value="true" /&gt;

    &lt;param name="isUI" value="true" /&gt;

    &lt;param name="autoStart" value="false" /&gt;

    &lt;param name="@videoList" value=648729340001 /&gt;

    &lt;param name="wmode" value="transparent"&gt;

  &lt;/object&gt;

 &lt;/code&gt;

&lt;/div&gt;

&lt;/div&gt;
</code>
</pre>

<p>However the problem is, when I append the response to a div on my page the script tag just disappers (stripped) and I can't play the video. It seems to only append the below without the script tag:</p>

<pre><code>
&lt;div id="rr-brightcove" class="module vids rrmodule"&gt;&lt;h3&gt;Video&lt;/h3&gt;

 &lt;div class="module-body"&gt;

  &lt;object id="myaolExperience" class="BrightcoveExperience"&gt;

    &lt;param name="bgcolor" value="#FFFFFF" /&gt;

    &lt;param name="width" value="318" /&gt;

    &lt;param name="height" value="295" /&gt;

    &lt;param name="playerID" value=106573607001 /&gt;

    &lt;param name="publisherID" value=1612833736/&gt;

    &lt;param name="isVid" value="true" /&gt;

    &lt;param name="isUI" value="true" /&gt;

    &lt;param name="autoStart" value="false" /&gt;

    &lt;param name="@videoList" value=648729340001 /&gt;

    &lt;param name="wmode" value="transparent"&gt;

  &lt;/object&gt;

 &lt;/code&gt;

&lt;/div&gt;

&lt;/div&gt;
</code></pre>

<p>Can someone please help me with this?</p>

<p>Thanks,
L</p>
