--- In [email protected], "andre m. winter" 
<[EMAIL PROTECTED]> wrote:
>
> hi
> >> functions within it, nor to run said functions. With a "normal" 
> >> inline script, the text of the script including its function are 
> >> available as the nodeValue of the relevant tag, but such does 
not 
> >> seem to be for .es/.js files.
> 
> if i remember well (ASV is old stuff), it has to do  with the fact, 
that 
> script are interpreted first and only once a page is loaded. 

It figures... Here's the workaround:

<g id="scripts">
 <script xlink:href="conf" type="text/ecmascript"/>
 <script xlink:href="gui.es" type="text/ecmascript"/>
 <script type="text/ecmascript"><![CDATA[
  var s;
  for (var i = 0; i < scripts.length; i ++) {
   s = document.createElementNS
("http://www.w3.org/2000/svg","script";);
   s.setAttributeNS
("http://www.w3.org/1999/xlink","xlink:href",scripts[i]);
   document.documentElement.appendChild(s);
  }
 ]]></script>
</g>

It works everywhere except Safari. I'll take a look but perhaps it's 
just premature.

conf is controlled by php+Ajax and contains arrays with filenames, 
preferences, skins, etc. It can be loaded and saved, and with some 
effort reloaded. Coupled with the findings from André's 
XMLHttpRequest thread, this should allow unrestricted local work with 
no security breach. 

Thanks to all.

Domenico


> anything 
> added later stays passive as long as you don't pass it through 
something 
> like eval(). of course that doesn't work for external script files. 
i 
> guess that was also the case for NN4 and IE5 for html pages (?).
> 
> andré
> 
> -- 
> ___________________________________________________________________
> andre m. winter,
>   cartography for internet and multimedia applications
>   schiessstand 4/1, a6091 goetzens, tyrol, austria
>   tel.: ++43.5234.32732
>   http://www.vectoreal.com/          SVG consulting and development
>   http://www.geotrace.net/   geo-localized high quality photographs
>   http://www.carto.at/     print and online touristic map solutions
>




-----
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/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/svg-developers/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:[EMAIL PROTECTED] 
    mailto:[EMAIL PROTECTED]

<*> 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/
 

Reply via email to