I am trying to cache a very simple javascript response. I am using rails and my views/projects/index.js.erb contains only the following:
what is faster? <script src=\"../js/SOME.js\" type=\"text/javascript\"></script> OR $.getScript(\'../j开发者_StackOverflow中文版s/SOME.js\', function (){ ...
I\'m working on a site that serves content via AJAX. If you click an item in the menu, a content div gets updated with $.get response, nothing fancy.
The question initially arose from a idea to dynamically load a group of javascript files with $.getScript.
I\'m trying like this, $.getScript(\'js/tiny_mce/tiny_mce.js\',function(){ recargar_tiny(); }); on document.ready()
I\'m trying to add a js function dynamically so I read about $.getScript(). Correct me if I\'m wrong, but it seems $.getScript() will just call a .js file that\'s already there in the public folder an
When I load a script with .getScript(\'file.js\') is there a way to do remove that script later? sort of like a clean where I say delete the js I loade开发者_Go百科d earliergetScript doesn\'t \"load\"
My specific question/problem has to do with implementing v1.7 of Cedric Dugas\' jQuery validation plugin (http://www.position-absolute.com/articles/jquery-form-validator-because-form-validation-is-a-m
I don\'t understand the reason for replacing this: <script src=\"js/example.js\"></script>
I have a problem using $.getScript() on chrome. It doesn\'t work on chrome browser. I\'ve tested it on firefox, ie and safari and it worked. All I have on my external script is an alert() and it doesn