I have had no problems using eval() calls to load API content. The only
requirement is that all global objects be attached to the window object.
For example:
DynLayer = function() {};
whould now read:
window.DynLayer = function() {};
Once the object is attached to the window object, it behaves in the same
fashion as a global object.
Stephan Tolksdorf wrote:
> Hi Steve,
>
> is your compression algorithm meant to be Navigator 4.7 compatible?
>
> I've got serious problems here... "Dynapi is undefined".
>
> Writing a large amount of code with document.write has always been a
> problem for Navigator.
> Executing the code with eval could be an alternative, but then every
> declaration would have to be rewritten into an assignment (e.g.
> function f() {} => f = function () {}). Doesn't seem to be an
> option...
>
> Or does someone know a way to declare a global function within a local
> block or a way to change the execution context of an eval statement?
>
> Best Regards,
> Stephan
>
> _______________________________________________
> Dynapi-Dev mailing list
> [EMAIL PROTECTED]
> http://www.mail-archive.com/[email protected]/
--
Michael Pemberton
[EMAIL PROTECTED]
ICQ: 12107010
_______________________________________________
Dynapi-Dev mailing list
[EMAIL PROTECTED]
http://www.mail-archive.com/[email protected]/