Questions tagged [getscript]

188 questions
3
votes
0 answers

Load TinyMce JS file on document.ready() not working with $.getScript

I'm trying like this, $.getScript('js/tiny_mce/tiny_mce.js',function(){ recargar_tiny(); }); on document.ready() On firebug log: .js loaded OK, no errors But seems that recargar_tiny() wich is: function recargar_tiny(){ …
Toni Michel Caubet
  • 19,333
  • 56
  • 202
  • 378
3
votes
4 answers

How can I use a function which is into another .js file?

Here is the simplified of my code: // script1.js $(document).ready(function(){ . . function myfunc(){ ... } . . }); // script2.js $(document).ready(function(){ . . //doesn't work $.getScript("./script1.js"); …
stack
  • 10,280
  • 19
  • 65
  • 117
3
votes
1 answer

Difference between document.createElement('script') vs jQuery .getScript

I've been having an issue getting .getScript to work in some odd cases. For instance, this works to load the scripts only when needed. function twitterSDK() { $jQ.getScript('http://platform.twitter.com/widgets.js'); } function diggShare() { …
Sahas Katta
  • 1,716
  • 3
  • 14
  • 24
3
votes
0 answers

jQuery getScript() not working in IE11

In an HTML5 app I'd like to defer the loading of some big JavaScript files to give faster UI control to the user. Using