javascript not displaying output when content loaded via jquery -


i have login page runs script third-party site so:

<span id="siteseal">     <script src="https://seal.starfieldtech.com/getseal?sealid=myspecialid"></script> </span> 

everything hunky dory. performs javascript , displays image.

i moved separate file, , including in original page using

$('#mydivid').load('/mypath/footer.html'); 

the entire footer displayed, , in chrome developer tools can see request made starfieldtech , javascript response returned, image never displayed.

the getseal script pretty simple, looking like:

<!-- dosomething();  function dosomething() {     // setup bunch of vars     document.write('<img src="blah" onclick="dostuffonclick();"/>'); }  function dostuffonclick() {     // other stuff on click. } // --> 

if create own script looks similar above replaces whole page output of script , shows intended starfield image.

i have no clue problem , hope gurus can point out stupid i'm missing.

as can't edit javascipt returned starfieldtech.com, think sensible way round use phantom.js (or similar) pre-process third party html on server before sending browser


Comments

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

CSS3 Transition to highlight new elements created in JQuery -