hi ross,
as content of the image tag, referenced scripts are external ressources.
in SVG1.0/1.1 there is *NO* control on when they finish to load and you
have no influence on the loading order (x.js before y.js) because the
server can be delayed on x.js for some reason and this y.js comes much
faster. i expect this to be the reason why you cannot see functions in
y.js, especially if you call them onload of the containing document. if
this is the cause of your error, normally you should get the content of
y.js after some unpredictable time.
a hack to overcome this problem, it to have:
- a regsitering function within the containing document that tracks calls
from external scripts. only when all references are loaded, then start
scripts needing those external ressources (this one shouldn't be placed in
an external file),- in the last line of your referenced scripts you should
place someting
like if(typeof myRegisterFunc !=
'undefined'){myRegisterFunc('someCodeForThisExternalRessource')}
i cannot see any other reason for the non loading of your second script
except reference errors, server errors, or that you have identical
function names in both referenced *.js files.
andr�
--
___________________________________________________________________
andre m. winter,
cartography for internet and multimedia applications
a6091 goetzens, tyrol, austria
tel.: ++43.5234.32732
email: <[EMAIL PROTECTED]>
<http://www.vectoreal.com/> SVG consulting and development
<http://www.carto.net/> online cartography focusing on SVG
<http://www.carto.at/> print and online touristic map solutions
> 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: [email protected]
> 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 Links
>
>
>
>
-----
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/