[svg-developers] Re: How to import .js files into SVG

2006-03-02 Thread Martin Honnen
--- In svg-developers@yahoogroups.com, Jeroen Vanattenhoven <[EMAIL PROTECTED]> wrote: > > Is it possible to load .js files via js-code? With this I mean: is it > possible to create packages like in Java and use them with something > like import io.gis.something? If not, is there an alternative f

[svg-developers] Re: How to import .js files into SVG

2006-03-03 Thread Jan-Klaas Kollhof
> Is it possible to load .js files via js-code? With this I mean: is it possible to create packages like in Java and use them with something like import io.gis.something? If not, is there an alternative for JavaScript? Because if you create a whole application (OO) with a lot of .js-files, it looks

[svg-developers] Re: How to import .js files into SVG

2006-03-03 Thread Martin Honnen
--- In svg-developers@yahoogroups.com, "Andre M. Winter - Carto.net" <[EMAIL PROTECTED]> wrote: > it is interesting to see this working! i wonder if this is a feature or > a bug, from my understanding of ECMAScript this should not work. I don't understand that comment at all, ECMAScript as defin

Re: [svg-developers] Re: How to import .js files into SVG

2006-03-03 Thread Andre M. Winter - Carto.net
hi martin, it is interesting to see this working! i wonder if this is a feature or a bug, from my understanding of ECMAScript this should not work. andré -- ___ andre m. winter, cartography for internet and multimedia applicati

Re: [svg-developers] Re: How to import .js files into SVG

2006-03-03 Thread Jeroen Vanattenhoven
Well, I know Dojo Toolkit (AJAX) has a built-in package support. You can import Dojo JS libraries with JS code. Something like dojo.Require(packagename). Andre M. Winter - Carto.net schreef: > hi martin, > > it is interesting to see this working! i wonder if this is a feature or > a bug, from my

Re: [svg-developers] Re: How to import .js files into SVG

2006-03-03 Thread Andre M. Winter - Carto.net
hi martin, thanks for illuminating hereon. i thought that a script needs to be interpreted onload for security reasons (just like cross domain scripting). it is nice to see this working. anyhow it is a bit confusing. one needs to go through the DOM to add a script tag that gets interpreted on