PDA

View Full Version : Xml and JS help


darklung
01-06-2005, 01:53 AM
I have this javascript <script src=http://radio.sportingnews.com/include/headline.js> </script>

I need to put it in my flash site and have it work properly ...I have been told that I need to use xml but not sure how to do it properly ...Help if you can

thanks alot .

_Aerospace_Eng_
01-06-2005, 07:18 AM
what does the script actually do or what should it do?

Alex Vincent
01-09-2005, 06:37 PM
Two things you need to be aware of. (1) JS in XML typically does not work in IE.

(2) Just use the XHTML namespace.


<script xmlns="http://www.w3.org/1999/xhtml"
type="application/x-javascript"><![CDATA[
// foo
]]></script>


If that doesn't work, we'll need to see your source code. :)