S
steven.harms
Hi gurus,
1. foo.html has a script tag to reference'foo.js'
2. foo.js wants to use the handy datadumper.js routines
3. How does foo.js become aware of functions in the datadumper.js
namespace?
Is this possible? I'm sure it must be?
Assuming it is....
In JS programming, is there a best practice for building these
'libraries'? Do JS-ers tend to divide the function sets into numerous
external files based on function? By this i mean:
1. greatsite.html uses script tag to reference 'general.js'
2. general.js sources 'ui_widgets.js' and 'transaction.js' and
'word_frobnicate.js', etc.
I'm pretty sure the first half is covered in this a FAQ...but i can't
seem to find it...
1. foo.html has a script tag to reference'foo.js'
2. foo.js wants to use the handy datadumper.js routines
3. How does foo.js become aware of functions in the datadumper.js
namespace?
Is this possible? I'm sure it must be?
Assuming it is....
In JS programming, is there a best practice for building these
'libraries'? Do JS-ers tend to divide the function sets into numerous
external files based on function? By this i mean:
1. greatsite.html uses script tag to reference 'general.js'
2. general.js sources 'ui_widgets.js' and 'transaction.js' and
'word_frobnicate.js', etc.
I'm pretty sure the first half is covered in this a FAQ...but i can't
seem to find it...