I'm trying something I've never worked with before - using Javascript within an XML document.
Here's the details: I'm reading an XML document from a flash site. The XML document is pretty much just some formatted text. I want to keep it as XML for ease of edit.
But I want to open an external window from a link in that XML, and I want to control the size of that window, and the basic window properties (no resize, no menu, etc.). In HTML I've always used DreamWeaver's Open Browser Window behavior for this - which is just a javascript function. I've tried using this in the XML and can't get this to work. I've tried several place to insert the script.
To be specific, here's what I'm trying:
-------------
<?xml version="1.0"?>
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_openBrWindow(theURL,winName,features) { //v2.0
window.open(theURL,winName,features);
}
//-->
</script>
<content>
<text>
<p>5.12.06</p><p>
link text here</p>
</content>
---------------------
Any suggestions?