I have been able to implant the function to load the js files, but my problem is that it seems that I can only access my variables not my functions (in the object that I load). anyone got any ideas on why this is?
mplungjan
180k29 gold badges183 silver badges246 bronze badges
asked May 23, 2011 at 8:58
Johan Olsson
6183 silver badges10 bronze badges
-
6Not without seeing your code...Felix Kling– Felix Kling2011年05月23日 09:00:55 +00:00Commented May 23, 2011 at 9:00
1 Answer 1
You can load one JS file during runtime which will load other JS files Suppose you have one js file say "Default.js" in this file just write following line. It will automatically load "FileToLoad.js" file. You can add as many lines as shown below to load more & more files- e.g. document.write(""); document.write(""); document.write("");
answered May 23, 2011 at 9:21
vivekj011
1,1493 gold badges16 silver badges24 bronze badges
Sign up to request clarification or add additional context in comments.
1 Comment
Johan Olsson
Thankyou for your awnser, but im not sure how this will help me during runtime?
lang-js