mporting js...

  • From: Alex Hall <mehgcap@xxxxxxx>
  • To: programmingblind@xxxxxxxxxxxxx
  • Date: Wed, 06 May 2009 12:20:33 -0400

Quick question: can I import a .js file in another .js file? If I have cookie functions in one file called cookies.js, and I have another js file called imp.js that I use in many files, can I access the functions in cookies.js from within imp.js? I tried, in imp.js, "src="./cookies.js"; but it did not work, I keep getting "object expected" errors. Thanks.


Have a great day,
Alex
__________
View the list's information and change your settings at //www.freelists.org/list/programmingblind

Other related posts: