faqts : Computers : Programming : Languages : JavaScript

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

8 of 22 people (36%) answered Yes
Recently 3 of 10 people (30%) answered Yes

Entry

How to access functions defined inside a 1st imported 'utilities.js' script, from any other <SCRIPT> ?

Apr 4th, 2008 21:13
ha mo, jsWalter, JRoch Grenetier,


There in nothing magical about 'importing' a script.
Actually, you 'include' them.
You can 'include' as many as you like, and IE will treat each Function 
and Method in all those files as if they were in one.
Just call them as normal.
Or is your question really about calling function 'included' in one 
frame from functions 'included' in onther?
Same applies.
To JS, 'included' JS files are just as if they were coded into the HTML 
itself.
Just call them as you wold call them otherwise.
Walter
http://www.businessian.com
http://www.computerstan.com
http://www.financestan.com
http://www.healthstan.com
http://www.internetstan.com
http://www.moneyenews.com
http://www.technologystan.com
http://www.zobab.com
http://www.healthinhealth.com