I've gotten this to work by using absolute urls for the xlink:href attribute (I 
had been using relative).  This fix, however, introduced a new behavior in that 
my scripts lost addressibility to the enclosing html document.  But that's ok, 
I worked around it.  
 
In contrast,  saving the SVG to file and making sure the scripts are also 
there, posed on problems for the browser; all scripts were loaded.  Only when 
the svg is surfaced through the embed tag from a real httprequest did I see the 
problem with relative hrefs.  

________________________________

From: Ross Allard [mailto:[EMAIL PROTECTED] 
Sent: Thursday, March 24, 2005 10:40 AM
To: svg-developers@yahoogroups.com
Subject: RE: [svg-developers] multiple script elements


FWIW, I can get it to work with SVG (copied from the source) I build manually 
and load directly into the browser.  So, there's something about the SVG that 
I'm building automatically on the server.   Odd. 

________________________________

From: Ross Allard [mailto:[EMAIL PROTECTED] 
Sent: Thursday, March 24, 2005 7:28 AM
To: svg-developers@yahoogroups.com
Subject: RE: [svg-developers] multiple script elements


Hey Doug, 

  At the end of my SVG file I have two script elements.

<svg>
...

<script type="text/ecmascript" xlink:href="x.js" />
<script type="text/ecmascript" xlink:href="y.js" />

</svg>

Only the first appears to be loaded; functions in "y" are not found. 


________________________________

From: Doug Schepers [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 23, 2005 8:39 PM
To: svg-developers@yahoogroups.com
Subject: RE: [svg-developers] multiple script elements


Hi, rossallard-

I do this all the time with no problems. Maybe you could send us an example
or a url?

Regards-
Doug

doug . schepers  @ vectoreal.com
www.vectoreal.com ...for scalable solutions.


rossallard wrote
| 
| I've tried separating two script sources into two files each 
| referenced externally via a <script> element.  Only the first 
| one appears to be loaded.  I don't see anything in the SVG 
| 1.1 spec that describes this restriction, but I've see some 
| statements on the web that multiple script elements are not allowed.  
| 
| Can anyone tell me the bottom line on this?
| 
| Thanks
| 



-----
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click "edit my 
membership"
---- 



Yahoo! Groups Sponsor      
ADVERTISEMENT
click here 
<http://us.ard.yahoo.com/SIG=1298j7cm9/M=298184.6191685.7192823.3001176/D=groups/S=1706030389:HM/EXP=1111714742/A=2593423/R=0/SIG=11el9gslf/*http://www.netflix.com/Default?mqso=60190075>
       
<http://us.adserver.yahoo.com/l?M=298184.6191685.7192823.3001176/D=groups/S=:HM/A=2593423/rand=820905318>
       

________________________________

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] <mailto:[EMAIL PROTECTED]> 
        
*      Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service 
<http://docs.yahoo.com/info/terms/> . 




[Non-text portions of this message have been removed]



-----
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click "edit my 
membership"
---- 



Yahoo! Groups Sponsor      
ADVERTISEMENT
click here 
<http://us.ard.yahoo.com/SIG=129el2knc/M=298184.6191685.7192823.3001176/D=groups/S=1706030389:HM/EXP=1111753696/A=2593423/R=0/SIG=11el9gslf/*http://www.netflix.com/Default?mqso=60190075>
       
<http://us.adserver.yahoo.com/l?M=298184.6191685.7192823.3001176/D=groups/S=:HM/A=2593423/rand=921857098>
       

________________________________

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] <mailto:[EMAIL PROTECTED]> 
        
*      Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service 
<http://docs.yahoo.com/info/terms/> . 




[Non-text portions of this message have been removed]



-----
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click "edit my 
membership"
---- 



Yahoo! Groups Sponsor   
ADVERTISEMENT
click here 
<http://us.ard.yahoo.com/SIG=129bcoq20/M=298184.6191685.7192823.3001176/D=groups/S=1706030389:HM/EXP=1111765238/A=2593423/R=0/SIG=11el9gslf/*http://www.netflix.com/Default?mqso=60190075>
   
 
<http://us.adserver.yahoo.com/l?M=298184.6191685.7192823.3001176/D=groups/S=:HM/A=2593423/rand=895411811>
      

________________________________

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] <mailto:[EMAIL PROTECTED]> 
          
*       Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service 
<http://docs.yahoo.com/info/terms/> . 




[Non-text portions of this message have been removed]



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



Reply via email to