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 insertion. ECMScript itself doesn't provide a solution for this. andré Martin Honnen wrote: > --- In [email protected], "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 defined here > <http://www.ecma-international.org/publications/standards/ECMA-262.HTM> > does not at all deal with DOM or script elements, it simple defines > the core language. > > Anything you do with DOM scripts is the use of host objects. So why > your understanding of ECMAScript says you anything about DOM scripting > in a browser/user agent where script elements are dynamically created > and inserted and resources loaded is not clear to me. > > If you dynamically created and inserted an image element in an SVG > document, would your understanding of ECMAScript as specified by the > ECMA organization then say anything on whether the SVG user agent > should or should not load and render the image? > > For HTML documents user agents like IE, Mozilla, Opera 8 do support > the dynamic creation and insertion of HTML script elements referencing > an external script file so that the script is being loaded and > executed when the script element is inserted into the document. Why > should that be a bug if it works for SVG script elements in SVG documents? > > > > > > > ----- > To unsubscribe send a message to: [EMAIL PROTECTED] > -or- > visit http://groups.yahoo.com/group/svg-developers and click "edit my > membership" > ---- > Yahoo! Groups Links > > > > > > > -- ___________________________________________________________________ andre m. winter, cartography for internet and multimedia applications schiessstand 4/1, a6091 goetzens, tyrol, austria tel.: ++43.5234.32732 email: <[EMAIL PROTECTED]> new svg book with actual scripting samples out now! check <http://svg.carto.net/> ----- To unsubscribe send a message to: [EMAIL PROTECTED] -or- visit http://groups.yahoo.com/group/svg-developers and click "edit my membership" ---- Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/svg-developers/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/

