>It's actually quite simple - user-defined global variables/functions are 
>stored in the window object.
>An example:
>
>         if(!window.DynAPI) {
>         }

Thanks A LOT, with Michael's example, these are 2 nice ways for a thing I 
was desesperated for.


>But the way you want to use this (auto-importing, that is) introduces a 
>whole different problem though.
>
>Imagine a file A.js that requires B.js and checks if the file already has 
>been loaded else loads it (with writing a SCRIPT tag) the required file 
>(B.js) is loaded _after_ the current JavaScript-block or file has been 
>executed - not inserted instead of the SCRIPT tag that was written.
>
>If you can come up with a solution I'll be more than interested!

I remeber I had some problems with IE about such things, but I'll think of 
it (in fact, I have an idea right now, but haven't got the time to write it 
down)... :-(
If I manage to write a working small prototype I'll post it in this list, 
as it might help.

Marc


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

Reply via email to