SitePoint Sponsor |
|
User Tag List
Results 1 to 6 of 6
-
Jul 26, 2006, 03:03 #1
Inclue javascript file in another javascript file
Hi, is it possible to use functions from javascript file A.js in javascript file B.js?
-
Jul 26, 2006, 03:42 #2
Dear Try use this,
var script = document.createElement("script");
script.setAttribute("type", "text/javascript");
script.setAttribute("src", "path/to/file.js");
document.getElementsByTagName("head")[0].appendChild(script);
-
Jul 26, 2006, 03:56 #3
Hum, seems like an good idea! Short and nice! Thank you!
-
Jul 26, 2006, 03:58 #4
No Problem at all
-
Jul 26, 2006, 05:52 #5
- Join Date
- May 2003
- Location
- Cambridge, UK
- Posts
- 2,366
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Originally Posted by sajjad
-
Jul 27, 2006, 00:25 #6
- Join Date
- Jul 2006
- Location
- Leeds, UK
- Posts
- 38
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Originally Posted by Buddy Bradley
Bookmarks