dcsimg
including JS files inside another JS file
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Miro_List
Posted On:   Tuesday, July 22, 2003 01:11 PM

Hi, I have 2 JS files and I want to use both inside another JS file. Look... 1st file: functions.js 2nd file: arrays.js 3rd file: menu.js And I want to include inside menu.js both functions.js and arrays.js. I am already using inside an ASP file the line: To re-use some external functions, I need 1st & 2nd files included inside menu.js. Is that possible? Is there some command or functions to include JS files this way? Thanks, Miro.    More>>

Hi,



I have 2 JS files and I want to use both inside another JS file. Look...



1st file: functions.js

2nd file: arrays.js



3rd file: menu.js



And I want to include inside menu.js both functions.js and arrays.js.



I am already using inside an ASP file the line:





To re-use some external functions, I need 1st & 2nd files included inside menu.js.



Is that possible? Is there some command or functions to include JS files this way?



Thanks, Miro.

   <<Less

Re: including JS files inside another JS file

Posted By:   Nitesh_Naveen  
Posted On:   Wednesday, July 23, 2003 01:20 AM

just include all the three js files in the ASP page. It should be in the right order... ie if menu.js uses variables functions from functions.js or array.js it is better to include them before menu.js. For eg.





You cannot include a js file into another jsp file.
About | Sitemap | Contact