Welcome to WebmasterWorld Guest from 18.104.22.168
Forum Moderators: open
I'm putting a lot of JS in an external file and calling it like this:
So, firstly: Is that the correct way to do it?
Secondly, I need to call some JS from another site. Can I do that from within my external JS? And of course, how do I do it?
In the code I'm working on it's just another <script src=> jobbie, I need to be able to do that from the external JS...
Call from external? You mean as a library? You can include both, i.e. include the external first (as a function library), then include the internal ones that call the functions in the external.
All I can say, slap the script tags for the other site into the external and test it. If it doesn't work put two sets of script tags on the original page.