[jQuery] (should be) simple use of getScript failing
In js file 'A.js' I have:
function A() {
alert('function A here');
}
In js file 'B.js' I have:
$.getScript('A.js');
function B() {
A();
}
But Firefox claims 'A is not defined' when I call B(), though clearly
it should be. I know jQuery is loading and evaluating A.js just fine. The
eval within jQuery returns the exact text of A.js. Further, this works just
fine if I do <script src='A.js'> before doing <script src='B.js'> within the
calling web page.
Is there something extra I need to do to have this work? I've tried
things like 'global A = function() ...' and the like but have had no
success at all.
Austin