I have a page (page1), which loads a different page (page2) into a modal popup. This new page (page2) has two external scripts, which should be fired on page load. This works fine, if I load the AJAX page by itself, but when I attempt to call them from the other page (page1), they don’t fire at all.
Now, the tricky part is, that the script is inserted by a user into a CMS, script tags included — and the scripts are actually just links to external scripts on a different server (LinkedIn). Fun fun fun!
Is there anyway at all I can force these scripts to fire on load anyway?
Well you hitting a security issue here. You can not make calls via AJAX to different domains, this is to prevent cross domain scripting vulnerabilities. There is no solution if like in this case you dont have control over the external page (linkedin)