Is there a command to import code into a javascript from within that javascript? Part of the code to be included exists in another .js file. [sig][/sig]
Not without a server-side method. Unfortunately, as of now Javascript still won't let you nest SRC calls. A server-side include (SSI) is a relatively simple bit of code, and they are supported on most modern webservers. [sig][/sig]
Another thing you can do, though, is to call multiple files with multiple <Script> blocks. Variables set in one block can be available to the code from the other block(s). If you combine this with some judicious use of the eval() function, you might be home free . [sig][/sig]
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.