jquery - importing external script - inconsistent behaviour across browsers and local vs server -


i have strange problem. being with, have make code work within lms (learning management system), not have 100% control on everything. need import js external server. tried both statically , dynamically important file. code works great in local no matter browser use. when uploaded server, works in ie , safari. however, not work in chrome , ff. so, confused whether (security) issue raised lms (because works in browsers locally) or issue browser (because not work in ff , chrome on server), or both? think? also, works fine when move js file same server.

dynamically:

<script> $(document).ready(function() {     $.getscript("http://url.com/quiz_instructions_elc_webid.js", function(){         alert("running test.js");     });  }); </script> 

or statically:

<script src="http://url.com/quiz_instructions_elc_webid.js"></script> 

the problem importing js file non-secure domain (http://) secure domain (https://). firefox , chrome not allow default. reason inconsistent behavior. hope helps else run similar situation.


Comments

Popular posts from this blog

php - SPIP: From Tag directly to an article -

jquery - isAjaxRequest always return false -

ruby on rails - In a controller spec, how to find a specific tag in the generated view? -