I have two pages which share JS files and also have their own private JS
files.  I wanted to make one common include file called common.js which
would include all the shared files and then include the private ones in
their own private files.  This is the scenario:

common.js
-----------
var theme = "../dynapi/lib/dynapi/images/themes/windows/"
document.write('<script language="Javascript"
src="'+theme+'style.js"><'+'/'+'script>');
DynAPI.setLibraryPath("../dynapi/lib/")
DynAPI.include('dynapi.api.*')
DynAPI.include('dynapi.widgets.slide.js')
etc...

page1.js
--------
DynAPI.include('common.js','.')
DynAPI.include('private1.js','.')

page2.js
--------
DynAPI.include('common.js','.')
DynAPI.include('private2.js','.')

The problem is that when I load page1 or page2, I get this error: DynLayer
undefined.  This error is thrown by the line in private1.js which calls
DynLayer.

If I just put all the includes in either page1 or page2 OR common.js, then
it works.

I'm sure someone knows what's going on.

Thanks,
Hershel





_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


_______________________________________________
Dynapi-Help mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/dynapi-help

Reply via email to