Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Javascript with XML to launch popup

843834Jun 26 2006
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?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 24 2006
Added on Jun 26 2006
0 comments
202 views